using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Mail; using System.Text; using SendGridMail; using SendGridMail.Transport; namespace Example { class Program { // this code is used for the SMTPAPI examples static void Main(string[] args) { var username = "brandonmwest"; var password = "bray!8282"; var from = "brawest@gmail.com"; var to = new List { "brawest@gmail.com" }; //initialize the SMTPAPI example class //var smtpapi = new SMTPAPI(username, password, from, to); var restapi = new WEBAPI(username, password, from, to); //use this section to test out our Web and SMTP examples! //smtpapi.SimpleHTMLEmail(); restapi.SimpleHTMLEmail(); Console.WriteLine("Done!"); Console.ReadLine(); } } }