I am using Laravel to send out some emails from RoundCube. The trouble is that I keep getting the same error
Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 250 but got code "530", with message "530 5.7.1 Client was not authenticated
". Authenticator PLAIN returned Expected response code 250 but got code "530", with message "530 5.7.1 Client was not authenticated.
I have looked around and havent found an accurate answer for that. Here is a part of the .env file that is relevant to the problem at hand.
MAIL_DRIVER=smtp
MAIL_HOST=ssl0.ovh.net
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=somepassword
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
I tried to replace the MAIL_ENCRYPTION
and MAIL_PORT
with tls
and 587
respectively. Also, I made sure that the credentials actually work. I also looked at the ovh docs which were not helpful at all for sending mails. Also, there is no option to allow less secure accounts like in Gmail.
Thanks
smtp.mail.ovh.ca
instead. – Offering