Karthik
Karthik

Reputation: 5757

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]

Upvotes: 4

Views: 5188

Answers (1)

M C
M C

Reputation: 11

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

Upvotes: 1

Related Questions