Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to authenticate on SMTP server with username "apikey" using 2 possible authenticators in SendGrid

I got the following error when trying to send an Email via SendGrid SMTP.

Failed to authenticate on SMTP server with username "apikey" using 2 possible authenticators. Authenticator LOGIN returned the Expected response code 250 but got an empty response. Authenticator PLAIN returned Expected response code 250 but got an empty response.

enter image description here

MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=apikey
MAIL_PASSWORD=mysecretkey
MAIL_ENCRYPTION=tls
MAIL_FROM_NAME="RPLS"
[email protected]
like image 577
Karthik Avatar asked Nov 22 '25 06:11

Karthik


1 Answers

check your IP to be whitelisted in Sendgrid dashboard https://app.sendgrid.com/settings/access

like image 101
M C Avatar answered Nov 23 '25 18:11

M C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!