Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Max-Edwards
Max-Edwards / Mailkit, Email Send.
Created August 16, 2017 14:55
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";