magento 1.x - 使用gmail作为外部SMTP发信 - 允许安全性较低的应用访问帐号
现象:在magento 1.9里安装Magento-SMTP-Pro-Email-Extension扩展后,无法使用gmail账号发出邮件。用命令测试连接smtp服务器,提示用户名或密码不可接受。535-5.7.8 Username and Password not accepted. Learn more at https://support.google.com/mail/?p=BadCredentials b4sm2793148pga.69 - gsmtp
尝试:登录到gmail账户,设置允许安全性较低的应用访问帐号。之后再次测试,就可以了。
参考:
- https://support.google.com/mail/answer/7126229?p=BadCredentials&visit_id=637673853617342818-2983833026&rd=2#cantsignin&zippy=%2C%E6%88%91%E6%97%A0%E6%B3%95%E7%99%BB%E5%BD%95%E8%87%AA%E5%B7%B1%E7%9A%84%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E5%AE%A2%E6%88%B7%E7%AB%AF
- https://stackoverflow.com/questions/1516754/connecting-to-smtp-gmail-com-via-command-line