![](/img/trans.png)
[英]Laravel, Failed to authenticate on SMTP server with username "" using 3 possible authenticators
[英]Failed to authenticate on SMTP server with username using 2 possible authenticators
我已配置為gmail SMTP服務器發送電子郵件。 帳戶不太安全的應用程序打開,也啟用了重新捕獲事物。 這是mail.php
配置。
此代碼在hostgator服務器上正常運行。 但我們有另一台服務器,郵件不是從該服務器發送的。 我現在應該怎么做?
錯誤圖片
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,
);
我遇到了同樣的問題。 終於發現我的服務器IP地址被列入黑名單。 請使用此鏈接檢查您的IP地址。
鏈接: https : //mxtoolbox.com/blacklists.aspx
如果它被列入黑名單,則通過提供鏈接發送重新列表請求。 而已
謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.