[英]Failed to authenticate on SMTP server with username using 2 possible authenticators
I've configured to gmail SMTP server to send email. 我已配置为gmail SMTP服务器发送电子邮件。 Account less secure app turned ON, also Recapture thing enabled.
帐户不太安全的应用程序打开,也启用了重新捕获事物。 Here is the
mail.php
configuration. 这是
mail.php
配置。
This code working fine on hostgator server. 此代码在hostgator服务器上正常运行。 But we have another server, mails are not sending from that server.
但我们有另一台服务器,邮件不是从该服务器发送的。 What should I do now?
我现在应该怎么做?
Error image 错误图片
http://screencast.com/t/BSCurEEubPJV http://screencast.com/t/BSCurEEubPJV
return array(
'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => array('address' => 'xxx@gmail.com', 'name' => 'xxxxTeam'),
'encryption' => 'tls',
'username' => 'xxx@gmail.com',
'password' => 'xx@123',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);
I got the same issue. 我遇到了同样的问题。 Finally found that my server IP address was blacklisted.
终于发现我的服务器IP地址被列入黑名单。 Please check your IP address using this link.
请使用此链接检查您的IP地址。
Link : https://mxtoolbox.com/blacklists.aspx 链接: https : //mxtoolbox.com/blacklists.aspx
If it is blacklisted, send re-list request via they provide links. 如果它被列入黑名单,则通过提供链接发送重新列表请求。 That's it
而已
Thank you 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.