通过PhpMailer发送的SMTP电子邮件出现问题:不接受Helo [英] Problem with SMTP emails sent via PhpMailer: Helo Not Accepted
问题描述
它给我的错误是:
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->错误:服务器不接受EHLO:
SMTP -> ERROR: EHLO not accepted from server:
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->错误:服务器不接受HELO:
SMTP -> ERROR: HELO not accepted from server:
SMTP->错误:服务器未接受AUTH:477您没有等待提示
SMTP -> ERROR: AUTH not accepted from server: 477 you did not wait for a prompt
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->错误:RSET失败:
SMTP -> ERROR: RSET failed:
邮件程序错误:SMTP错误:无法连接到SMTP主机.
mailer error: SMTP Error: Could not connect to SMTP host.
有人知道这个问题可能是什么吗???感谢您的帮助!
Does anyone have an idea of what the issue might be??? Thanks for your help!
推荐答案
@Cristian:我正在使用版本:2.0.4.
@Cristian: I'm using Version: 2.0.4.
$this->load->library('PhpMailer');
$this->phpmailer->Host = "mail.xxx.org";
$this->phpmailer->IsSMTP();
$this->phpmailer->SMTPAuth = true;
$this->phpmailer->Username = 'xxx';
$this->phpmailer->Password = 'xxxx';
$this->phpmailer->From= 'info@xxx.org';
$this->phpmailer->FromName = 'xxx Info';
$this->phpmailer->AddReplyTo('info@xxx.org', 'Info');
$this->phpmailer->Subject = 'Php mailer test';
$this->phpmailer->Body = 'test msg body';
$this->phpmailer->SMTPDebug = 2;
$this->phpmailer->AddAddress('example@xxx.com', 'BlackTie');
if(!$this->phpmailer->Send()){
echo 'mailer error: ' . $this->phpmailer->ErrorInfo;
}else{
echo 'msg sent';
}
这是错误消息:
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->错误:服务器不接受EHLO:
SMTP -> ERROR: EHLO not accepted from server:
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->错误:服务器未接受HELO:
SMTP -> ERROR: HELO not accepted from server:
SMTP->错误:服务器未接受AUTH:477您没有等待提示
SMTP -> ERROR: AUTH not accepted from server: 477 you did not wait for a prompt
SMTP->从服务器:
SMTP -> FROM SERVER:
SMTP->错误:RSET失败: 邮件错误:SMTP错误:无法连接到SMTP主机.
SMTP -> ERROR: RSET failed: mailer error: SMTP Error: Could not connect to SMTP host.
这篇关于通过PhpMailer发送的SMTP电子邮件出现问题:不接受Helo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!