我真的不知道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