2013-02-14 79 views
0

如果我使用PHPmailer發送單線消息,它將消除任何錯誤。PHPmailer數據不被服務器接受:421

但如果我發送大消息(10行),我得到以下錯誤::。

SMTP -> FROM SERVER:250 2.5.0 Address Ok. 
SMTP -> FROM SERVER:250 2.1.5 <toaddress>@gmail.com OK. 
SMTP -> FROM SERVER:354 Enter mail, end with a single ".". 
SMTP -> FROM SERVER:421 4.4.2 Timeout while waiting for command. 
SMTP -> ERROR: DATA not accepted from server: 421 4.4.2 Timeout while waiting for command. 
SMTP Error: Data not accepted. 

回答

0

這就是您的timeout價值。找到下面的代碼在你的class.phpmailer.php

var $Timeout = 10;

然後將值更改爲更高的價值。

相關問題