dongtong2021 2018-07-12 07:24 采纳率: 0%
浏览 2766

无法发送AUTH LOGIN命令,错误:504 5.7.4 无法识别的身份验证类型

PHPMailer 配置代码如下:

$config = Array(
        'useragent' => 'PHPMailer',
        'protocol' => 'smtp',
        'smtp_host' => 'webmail.waskitaprecast.co.id',
        'smtp_port' => 25
        'smtp_user' => '****@waskitaprecast.co.id',
        'smtp_pass' => '*****',
        'charset'   => 'iso-8859-1',
        'wordwrap' => TRUE,
        'smtp_timeout' => '30',
        'mailpath' => '/usr/sbin/sendmail',
        'mailtype' => 'html'
    );

我得到了这个错误:

220 WBP-EXCH-01.wbp.local Microsoft ESMTP MAIL Service ready at Thu, 12 Jul 2018 14:15:18 +0700 hello: 250-WBP-EXCH-01.wbp.local Hello [10.10.2.74]

250-SIZE 26214400

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODES 250-8BITMIME

250-BINARYMIME

250 CHUNKING

发送Auth登录命令失败。错误:504 5.7.4 Unrecognized authentication type Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

请帮帮我吧!

  • 写回答

1条回答 默认 最新

  • doujiufutaog59220 2018-07-12 07:45
    关注

    Try to change:

    'protocol' => 'smtp',
    

    to

    'protocol' => 'sendmail',
    
    评论

报告相同问题?

悬赏问题

  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误