PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, February 21, 2022

[FIXED] CakePHP 3 & Mercury: SMTP server did not accept the password

 February 21, 2022     cakephp, cakephp-3.0, cakephp-3.1, email, xampp     No comments   

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
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing