Menu

Using MailKit to send emails via GoDaddy SMTP on ASP.Net Core app

I have an application that needs to send emails, application is coded in c# asp.net core and most of the previous packges I used int he past not compatible with asp.net core. I came across with MailKit seem to be pretty popular for email sending in c#, thought give it a go.

install the NuGet
https://github.com/jstedfast/MailKit

After few tries, I was able to find the optimum settings to work with GoDaddy SMTP server. Below is the code snippet.

 

Leave a comment