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

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


        
2条回答
  •  余生分开走
    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

提交回复
热议问题