Issue
I have localhost xampp server with Mercury mail server. With Thunderbird email client I can send and recive mails from localhost.
But when try send with CakePHP 3.1.x i got error message:
SMTP server did not accept the password.
i use same login data:
'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,
],
],
Mercury log when send and recive with Thunderbird
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:<nikola@localhost.dev> SIZE=385
T 20151202 221930 565f69f1 RCPT TO:<info@localhost.dev>
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.
Mercury log when try to send and recive with CAKEPHP
T 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.
Solution
If anyone ever had the same problem, the solution is:
'password' => null,
Answered By - Salines
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.