Php Swift mailer Symfony2错误
使用Symfony2,我无法正确配置用于发送电子邮件的邮件程序 我的配置如下:Php Swift mailer Symfony2错误,php,symfony,swiftmailer,Php,Symfony,Swiftmailer,使用Symfony2,我无法正确配置用于发送电子邮件的邮件程序 我的配置如下: mailer_transport="gmail" mailer_host="gmail" mailer_user="********" mailer_password="*******" 我得到的错误是: Swift_TransportException: Failed to authenticate on SMTP server with username "pgbonino" using 1 possible
mailer_transport="gmail"
mailer_host="gmail"
mailer_user="********"
mailer_password="*******"
我得到的错误是:
Swift_TransportException: Failed to authenticate on SMTP server with username "pgbonino" using 1 possible authenticators
有线索吗
对不起,我没有全部说出来。它与普通的Gmail帐户配合得很好。它不适用于谷歌应用程序电子邮件帐户。这种帐户的配置有什么不同吗
再次感谢我目前正在为gmail使用此配置
parameters.ini
mailer_transport: smtp
mailer_host: smtp.gmail.com:465
mailer_user: usenrame
mailer_password: ***
你确定密码正确吗?尝试使用相同的用户和密码登录gmail,看看它是否有效。我通常使用mailer_host=localhost,并且mailer_用户包含完整的电子邮件地址someone@someplace.com. 使用google应用程序帐户似乎可以正常工作。谢谢。。。我一到家就会试试,告诉你它是怎么工作的