aschroder / Magento-SMTP-Pro-Email-Extension

Full SMTP and Gmail/Google Apps Email support for Magento
aschroder.com
334 stars 208 forks source link

Sendgrid and 2FA not working anymore #264

Open kentmedom opened 5 years ago

kentmedom commented 5 years ago

From the 19. of April, it is no longer possible to connect to sendgrid with basic authentication, while also having 2FA at Sendgrid. SMTPpro only have basic authentication.

calendarbudget commented 5 years ago

I'm getting an error also: When running self-test I get: Exception message was: Unable to connect via TLS If I try Custom SMTP and use the sendgrid smtp details, I keep getting: Exception message was: Incorrect authentication data

kentmedom commented 5 years ago

I have fixed my problem by disabling 2FA at Sendgrid, but that is not a solid solution.

desaiuttam commented 3 years ago

Hello @kentmedom

It's Simple to use with API key as below: Login to sendgrid account

Go to https://app.sendgrid.com/settings/api_keys

"Generate API Key" - generate a new API key and copy paste to be used later

Code changes: EMAIL_HOST_USER = 'apikey' (username should be this only) EMAIL_HOST_PASSWORD = 'YOUR_API_KEY'

As in Admin You have to add the User name as 'apikey' and password as 'YOUR_API_KEYS'