Send Email with MailKit in .NET

Using MailKit to send email in .NET. The old way with SmtpClient, which was much simpler, is now deprecated in favor of this.

For a more thorough example with proper dependency injection and ASP.NET configuration, see this link.

View code in GitHub

Comments

Popular posts from this blog

Left Join in Entity Framework

SQL Dates Table

HTML Line Breaks With CSS