简体   繁体   中英

Failed to authenticate on SMTP server with username using 2 possible authenticators

I've configured to gmail SMTP server to send email. Account less secure app turned ON, also Recapture thing enabled. Here is the mail.php configuration.

This code working fine on hostgator server. But we have another server, mails are not sending from that server. What should I do now?

Error image

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. Please check your IP address using this link.

Link : https://mxtoolbox.com/blacklists.aspx

If it is blacklisted, send re-list request via they provide links. That's it

Thank you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM