You get this error from phpmailer.
"Password not accepted from server: 535 Incorrect authentication data"
What causes this?
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).