Magento2的SMTP Pro测试发送gmail邮件失败 - cPanel

现象:WHM/cPanel环境里安装了Magento2,想通过SMTP Pro用gmail的邮件服务发邮件。邮件发送测试时提示出错:SMTP Pro Self Test Results: Exception message was: Unable to connect via TLS

过程:

1.确认php环境是支持openssl的,发信测试也是一样的失败结果
magento-smtp-gmail-ssl-1.png

2.搜索得,需要在WHM的Tweak Settings中,将“Restrick outgoing SMTP to root, exim, and mailman(FKA SMTP Tweak)”的功能关闭(设置为Off)
magento-smtp-gmail-ssl-3.png

3.重新测试发信,正常了

参考:https://magento.stackexchange.com/questions/22227/transactional-emails-not-going-out/22233#22233?newreg=72b194287746436db1f4744ce11838b4

标签: cPanel, magento, smtp

添加新评论