Nikki
6 months ago
1322
3
Laravel

Failed to authenticate on SMTP server with username

Posted 6 months ago by Nikki

I'm getting this error when I hit submit on my contact form

Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators. 
Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 Incorrect authentication data ". 
Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535 Incorrect authentication data ".

As far as I know all my details is corrected and my cpanel php is 7.3.

On my live site the contact form works correctly, but on my localhost I'm getting the above mentioned error. I used mailtrap to test out my contact form and that worked as well.

I can't understand why I'm getting this error when those details is working fine on my live site.

this is my .env

MAIL_DRIVER=smtp
MAIL_HOST=mail.domain.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=password
MAIL_ENCRYPTION=null

Please sign in or create an account to participate in this conversation.