通过 PhpMailer 发送 SMTP 电子邮件出现问题:Helo 未接受

发布于 2024-11-03 01:47:07 字数 328 浏览 2 评论 0原文

它给我的错误是:

SMTP ->从服务器:

SMTP ->从服务器:

SMTP ->错误:服务器未接受 EHLO:

SMTP ->从服务器:

SMTP ->错误:服务器未接受 HELO:

SMTP ->错误:服务器未接受身份验证:477 您没有等待提示

SMTP ->从服务器:

SMTP ->错误:RSET 失败:

邮件程序错误:SMTP 错误:无法连接到 SMTP 主机。

有谁知道问题可能是什么???感谢您的帮助!

The error it's giving me is:

SMTP -> FROM SERVER:

SMTP -> FROM SERVER:

SMTP -> ERROR: EHLO not accepted from server:

SMTP -> FROM SERVER:

SMTP -> ERROR: HELO not accepted from server:

SMTP -> ERROR: AUTH not accepted from server: 477 you did not wait for a prompt

SMTP -> FROM SERVER:

SMTP -> ERROR: RSET failed:

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲影 2024-11-10 01:47:07

@Cristian:我正在使用版本: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= '[email protected]';
    $this->phpmailer->FromName = 'xxx Info';

    $this->phpmailer->AddReplyTo('[email protected]', 'Info');

    $this->phpmailer->Subject = 'Php mailer test';

    $this->phpmailer->Body = 'test msg body';

    $this->phpmailer->SMTPDebug = 2;

    $this->phpmailer->AddAddress('[email protected]', 'BlackTie');

    if(!$this->phpmailer->Send()){
        echo 'mailer error: ' . $this->phpmailer->ErrorInfo;
    }else{
        echo 'msg sent';
    } 

这是错误消息:

SMTP ->从服务器:

SMTP ->从服务器:

SMTP ->错误:服务器未接受 EHLO:

SMTP ->从服务器:

SMTP ->错误:服务器未接受 HELO:

SMTP ->错误:服务器未接受身份验证:477 您没有等待提示

SMTP ->从服务器:

SMTP ->错误:RSET 失败:
邮件程序错误:SMTP 错误:无法连接到 SMTP 主机。

@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= '[email protected]';
    $this->phpmailer->FromName = 'xxx Info';

    $this->phpmailer->AddReplyTo('[email protected]', 'Info');

    $this->phpmailer->Subject = 'Php mailer test';

    $this->phpmailer->Body = 'test msg body';

    $this->phpmailer->SMTPDebug = 2;

    $this->phpmailer->AddAddress('[email protected]', 'BlackTie');

    if(!$this->phpmailer->Send()){
        echo 'mailer error: ' . $this->phpmailer->ErrorInfo;
    }else{
        echo 'msg sent';
    } 

Here's the error message:

SMTP -> FROM SERVER:

SMTP -> FROM SERVER:

SMTP -> ERROR: EHLO not accepted from server:

SMTP -> FROM SERVER:

SMTP -> ERROR: HELO not accepted from server:

SMTP -> ERROR: AUTH not accepted from server: 477 you did not wait for a prompt

SMTP -> FROM SERVER:

SMTP -> ERROR: RSET failed:
mailer error: SMTP Error: Could not connect to SMTP host.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文