Symfony2 Swiftmailer Not Sending

前端 未结 7 822
南旧
南旧 2021-02-07 04:14

I am having trouble sending emails with symfony2 and swiftmailer. I am also a bit lost on how to debug this issue. Below is the code. First I am creating a form to display. On s

7条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 04:48

    Can you post parameters.yml?

    Also ensure that spooling is disabled so the email can be instantly sent. If you have a spool entry under the Swiftmailer configuration, delete it, for example:

    swiftmailer:
        transport: %mailer_transport%
        host:      %mailer_host%
        username:  %mailer_user%
        password:  %mailer_password%
        spool:     { type: memory }
    

    Should be:

    swiftmailer:
        transport: %mailer_transport%
        host:      %mailer_host%
        username:  %mailer_user%
        password:  %mailer_password%
    

提交回复
热议问题