0
我有帶Mercury郵件服務器的localhost xampp服務器。 使用Thunderbird電子郵件客戶端,我可以從本地主機發送和接收郵件。CakePHP 3&Mercury:SMTP服務器不接受密碼
但是,當嘗試使用CakePHP 3.1.X送我得到錯誤信息:
SMTP服務器不接受密碼。
我使用相同的登錄數據:
'EmailTransport' => [
'default' => [
'className' => 'Smtp',
// The following keys are used in SMTP transports
'host' => 'localhost.dev',
'port' => 25,
'timeout' => 30,
'username' => 'info',
'password' => 'info',
'client' => null,
'tls' => null,
],
],
水星登錄時發送和雷鳥recive
T 20151202 221930 565f69f1 Connection from 127.0.0.1
T 20151202 221930 565f69f1 EHLO [127.0.0.1]
T 20151202 221930 565f69f1 MAIL FROM:<[email protected]> SIZE=385
T 20151202 221930 565f69f1 RCPT TO:<[email protected]>
T 20151202 221930 565f69f1 DATA
T 20151202 221930 565f69f1 DATA - 12 lines, 385 bytes.
T 20151202 221930 565f69f1 QUIT
T 20151202 221930 565f69f1 Connection closed with 127.0.0.1, 0 sec. elapsed.
水星登錄時嘗試發送和使用CakePHP
reciveT 20151202 222318 565f69f2 Connection from 127.0.0.1
T 20151202 222318 565f69f2 EHLO localhost
T 20151202 222318 565f69f2 AUTH LOGIN
T 20151202 222318 565f69f2 QUIT
T 20151202 222318 565f69f2 Connection closed with 127.0.0.1, 0 sec. elapsed.
我建議先從檢查汞日誌,和比較什麼正在從CakePHP的和Thunderbird發送。 – ndm
好吧,我添加日誌,thunderbird和cakephp – Salines
而不是編輯您的問題的答案,而應該發佈解決方案作爲答案。與此同時,我刪除了問題的「答案」部分。 – ryanyuyu