我真的不知道PHPMailer,Mandrill或我的託管帳戶有什麼問題。一切工作正常進行最後4個月,但今天我得到這個錯誤:PHPMailer:一切工作正常4個月,但突然SMTP連接()失敗
Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
,這裏是什麼樣子時,啓用$mail->SMTPDebug = 2;
,如:
2016-08-16 15:30:08 SERVER -> CLIENT: 220-jkt03.dewaweb.com ESMTP Exim 4.87 #1
Tue, 16 Aug 2016 22:30:08 +0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. 2016-08-16 15:30:08
CLIENT -> SERVER: EHLO komisian.com 2016-08-16 15:30:08
SERVER -> CLIENT: 250-jkt03.dewaweb.com Hello komisian.com [103.200.7.25] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP 2016-08-16 15:30:08
CLIENT -> SERVER: STARTTLS 2016-08-16 15:30:08
SERVER -> CLIENT: 220 TLS go ahead 2016-08-16 15:30:08
CLIENT -> SERVER: EHLO komisian.com 2016-08-16 15:30:08
SERVER -> CLIENT: 250-jkt03.dewaweb.com Hello komisian.com [103.200.7.25] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP 2016-08-16 15:30:08
CLIENT -> SERVER: AUTH LOGIN 2016-08-16 15:30:12
SERVER -> CLIENT: 334 VXNlcm5hbWU6 2016-08-16 15:30:12
CLIENT -> SERVER: xxx 2016-08-16 15:30:12
SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2016-08-16 15:30:12
CLIENT -> SERVER: xxx== 2016-08-16 15:30:15
SERVER -> CLIENT: 535 Incorrect authentication data 2016-08-16 15:30:15
SMTP ERROR: Password command failed: 535 Incorrect authentication data 2016-08-16 15:30:15 SMTP Error: Could not authenticate. 2016-08-16 15:30:15
CLIENT -> SERVER: QUIT 2016-08-16 15:30:15
SERVER -> CLIENT: 221 jkt03.dewaweb.com closing connection 2016-08-16 15:30:15
SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Message could not be sent.Mailer Error: SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
任何想法是什麼原因造成這個錯誤?這是我的託管帳戶或Mandrill的錯嗎?我已經下載了最新版本的PHPMailer,但這就是我得到的結果。
僅供參考,我使用測試本教程:https://mandrill.zendesk.com/hc/en-us/articles/205582147-How-to-Send-with-PHPMailer
謝謝您的回答。對此,我真的非常感激。
問:定期發送多少封電子郵件?如果你覺得你沒有派出太多,那麼考慮設立一個SPF記錄。這可能會減少這種可能性。 –
只是爲了確保:您是否有付費SurveyMonkey帳戶? [Mandrill今年早些時候與支付的SurveyMonkey賬戶掛鉤](http://blog.mandrill.com/important-changes-to-mandrill.html)。我不知道他們的滾動過程是什麼樣的,但是您的非付費帳戶可能已停用... – Chris