Symfony2 Swiftmailer Not Sending

前端 未结 7 816
南旧
南旧 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:53

    I you have trouble receiving email with ovh, siwftmailer and fosUserBundle,

    please consider adding this in your config.yml

    fos_user:
        from_email:
                address:        noreply@yourdomain.com
                sender_name:    yourname
    

    If you don't do this, fos user bundle will send the email with noreply@exemple.com and OVH flag this as spam.

    source: https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/emails.md

提交回复
热议问题