Laravel 9 - Failed to authenticate on SMTP server with username

2.1k views Asked by At

The issue: Failed to authenticate on SMTP server with username "b926ad2c64b4a7" using the following authenticators: "CRAM-MD5", "LOGIN", "PLAIN". Authenticator "CRAM-MD5" returned "Expected response code "235" but got code "451", with message "451 4.3.2 Internal server error".". Authenticator "LOGIN" returned "Expected response code "334" but got empty code.". Authenticator "PLAIN" returned "Expected response code "235" but got empty code.".

My Laravel Project was all working perfectly fine a few days ago. (No Code Changes have been made). When I stumbled into the error I updated my SMPT setting within the .env file like so:

.env

    MAIL_MAILER=smtp
    MAIL_HOST=smtp.mailtrap.io
    MAIL_PORT=2525
    MAIL_USERNAME=b926ad2c64b4a7
    MAIL_PASSWORD=ba6651bbf8xxxx
    MAIL_ENCRYPTION=tls

with the new setting's in place within the .env file, I'm still receiving the same error. I use npm run dev (Laravel Vite) and Docker Container. Shut down the laravel vite and for docker I have used docker compose down and then docker compose up for complete refresh. same error still happens.

Ran following

    php artisan config:cache
    php artisan config:clear
    php artisan cache:clear
0

There are 0 answers