How to set 'FROM' property using Swiftmailer with Gmail?

前端 未结 2 1459
不知归路
不知归路 2020-12-21 01:32
setUsername(\'username@gmail         


        
相关标签:
2条回答
  • 2020-12-21 01:41

    Gmail disallows overriding the FROM name except from verfied email addresses that you prove to gmail you own. Either choose a different email server or go to your gmail settings and change it to another valid email address that you can receive email from.

    0 讨论(0)
  • 2020-12-21 01:55

    You need to set the outgoing emailaddress in gmail. Gmail changes the emailaddress to the address in your gmail if it is not in the list of emailaddresses where you can sent from.

    Gmail -> settings -> Send mail as -> Add another email address you own

    0 讨论(0)
提交回复
热议问题