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# core and most of the previous packges I used int he past not compatible with core. I came across with MailKit seem to be pretty popular for email sending in c#, thought give it a go.

install the NuGet

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