sendgrid, smtp,

How to send an SMTP mail using SendGrid?

Arasu RRK Arasu RRK Follow Dec 15, 2019 · 1 min read
How to send an SMTP mail using SendGrid?
Share this

SendGrid (now owned by Twilio) is used by some of the biggest names in the industry such as Uber, Spotify, Yelp, Airbnb, and even Kinsta. It originally started out as a transactional email SMTP and API serviced designed for developers. However, they now also offer email marketing features as well.

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

  2. Click the Create API Key.

  3. From the dialog select Restricted Access

  4. Enable the option Mail Send -> Mail Send

  5. Once the API keys generated, please keep them in a safe place. You can’t get the same key again and you need to regenerate a new key.

  6. Please use the following SMTP configuration in your application.

Host smtp.sendgrid.net
Port 587 or 465(SSL)
Username apikey (Yes. apikey is the username for all accounts)
Password API key generated in the above steps

Code Sample

Please find the sample C# application in the below link.

https://github.com/arasu-rrk/sendgrid-smtp-client