How to setup smtp connection for symfony with mailer bundle?

I’m currently hosting my website in a shared server with a mail option. I want to send mail (ex: from [email protected]) but I’m encountering an issue:

Failed to authenticate on SMTP server with username "(username)" using the following authenticators:
"LOGIN", "PLAIN". Authenticator "LOGIN" returned "SymfonyComponentMailerExceptionTransportException:
Expected response code "235" but got code "535", with message "535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6". in
/home/(...)/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:297

My MAILER_DSN is smtp://smtp://username:[email protected]:465, normally this is correct, so I don’t see where the problem could come from.

Thanks !

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *