1

You get this error from phpmailer.

"Password not accepted from server: 535 Incorrect authentication data"

What causes this?

1 Answer 1

1

You must make sure that the Username given for the log-on is the same as the SetFrom email address.

This will return an error:

$mail->Username   = "[email protected]";      // GMAIL username 
$mail->Password   = "password";                      // GMAIL password 
$mail->SetFrom('[email protected]', 'Pagelinks');

This should not.

$mail->Username   = "[email protected]";    // GMAIL username 
$mail->Password   = "password";                      // GMAIL password 
$mail->SetFrom('[email protected]', 'Pagelinks');

When the Username and SetFrom do not match the authentication fails (according to an article found on Google).

Not the answer you're looking for? Browse other questions tagged or ask your own question.