Skip to content

Showcase how SendGrid and MailKit work together

Notifications You must be signed in to change notification settings

jeroenheijmans/sample-sendgrid-mailkit-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Sample SendGrid and MailKit Application

Demonstrates how to send SMTP e-mail with SendGrid and Mailkit. Uses Configuration, UserSecrets, and Serilog as well.

Details

⚠ Warning: this sample is provided as is. There will likely be no (security) updates, and you should consider this example frozen in time.

Steps to use

SendGrid setup

This example is based off the SendGrid (Twillio) blog on the same subject. The condensed version of all steps is:

  1. Create a Sendgrid account
  2. Complete onboarding (a "Single Sender Domain" account is good enough)
  3. Create an API key with permissions: "Restricted Access" and at least "Mail Send" Full Access

Running

To use this sample:

  1. Clone the repository;
  2. Create UserSecrets for the csproj file (or change the appsettings.json but be sure not to commit those changes!!), duplicate the "SendGrid" section in its entirety and use your own settings;
  3. Run the application;

That's it!

About

Showcase how SendGrid and MailKit work together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages