Migrate to Self-hosted Ubuntu server, cannot send emails.
Here is the error message.
[2023-04-23 06:05:52] production.ERROR: Expected response code “250” but got code “530”, with message “530 Error: authentication Required”. {“userId”:1,“exception”:"[object] (Symfony\Component\Mailer\Exception\TransportException(code: 530): Expected response code "250" but got code "530", with message "530 Error: a
uthentication Required". at /home/invoicexx/Invoice/public_html/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php:337)
[stacktrace]
#0 /home/invoice3yZD2DWVaV/Invoice/public_html/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php(201): Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->assertResponseCode()
#1 /home/invoice3yZD2DWVaV/Invoice/public_html/vendor/symfony/mailer/Transport/Smtp/EsmtpTransport.php(105): Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->executeCommand()
#2 /home/invoice3yZD2DWVaV/Invoice/public_html/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php(258): Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport->executeCommand()
…
The smtp credential in .env is correct for sure.
MAIL_MAILER=“smtp”
MAIL_HOST=“smtp-relay.sendinblue.com”
MAIL_PORT=“587”
MAIL_USERNAME=“correct username”
MAIL_PASSWORD=“correct password”
MAIL_ENCRYPTION=“tls”
MAIL_FROM_ADDRESS="info@xxx.com"
MAIL_FROM_NAME=“xxx Inc”