Skip to content

Instantly share code, notes, and snippets.

View Mailkit, Email Send.
public static async Task SendMail()
{
try
{
//From Address
string FromAddress = "testingthetested@gmail.com";
string FromAdressTitle = "Email from ASP.NET Core 1.1";
//To Address
string ToAddress = "testingthetested@gmail.com";
string ToAdressTitle = "Microsoft ASP.NET Core";