smtp.xml 1.5 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <parameters>
  6. <parameter key="swiftmailer.transport.smtp.class">Swift_Transport_EsmtpTransport</parameter>
  7. </parameters>
  8. <services>
  9. <service id="swiftmailer.transport.smtp" class="%swiftmailer.transport.smtp.class%" public="false">
  10. <argument type="service" id="swiftmailer.transport.buffer" />
  11. <argument type="collection">
  12. <argument type="service" id="swiftmailer.transport.authhandler" />
  13. </argument>
  14. <argument type="service" id="swiftmailer.transport.eventdispatcher" />
  15. <call method="setHost"><argument>%swiftmailer.transport.smtp.host%</argument></call>
  16. <call method="setPort"><argument>%swiftmailer.transport.smtp.port%</argument></call>
  17. <call method="setEncryption"><argument>%swiftmailer.transport.smtp.encryption%</argument></call>
  18. <call method="setUsername"><argument>%swiftmailer.transport.smtp.username%</argument></call>
  19. <call method="setPassword"><argument>%swiftmailer.transport.smtp.password%</argument></call>
  20. <call method="setAuthMode"><argument>%swiftmailer.transport.smtp.auth_mode%</argument></call>
  21. </service>
  22. </services>
  23. </container>