[英]Problem with SMTP emails sent via PhpMailer: Helo Not Accepted
它给我的错误是:
SMTP->从服务器:
SMTP->从服务器:
SMTP->错误:服务器未接受EHLO:
SMTP->从服务器:
SMTP->错误:服务器不接受HELO:
SMTP->错误:服务器未接受AUTH:477您没有等待提示
SMTP->从服务器:
SMTP->错误:RSET失败:
邮件错误:SMTP错误:无法连接到SMTP主机。
有谁知道这个问题可能是什么??? 谢谢你的帮助!
@克里斯蒂安:我正在使用版本: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->从服务器:
SMTP->错误:服务器未接受EHLO:
SMTP->从服务器:
SMTP->错误:服务器不接受HELO:
SMTP->错误:服务器未接受AUTH:477您没有等待提示
SMTP->从服务器:
SMTP->错误:RSET失败:邮件错误:SMTP错误:无法连接到SMTP主机。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.