![](/img/trans.png)
[英]Failed to send AUTH LOGIN command. Error: 504 5.7.4 Unrecognized authentication type - office365
[英]Failed to send AUTH LOGIN command. Error: 504 5.7.4 Unrecognized authentication type when send email with php
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服務已准備就緒,2018年7月12日星期四14:15:18 +0700您好:250-WBP-EXCH-01.wbp.local您好[10.10.2.74]
250尺寸26214400
250管道
250 DSN
250-增強狀態代碼250-8BITMIME
250-BINARYMIME
250調音
無法發送AUTH LOGIN命令。 錯誤:504 5.7.4無法識別的身份驗證類型無法使用PHP SMTP發送電子郵件。 您的服務器可能未配置為使用此方法發送郵件。
請幫我 :(
嘗試更改:
'protocol' => 'smtp',
至
'protocol' => 'sendmail',
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.