static void Main(string[] args) { String toAddress = "*****@*****.**"; String subject = "Email Testing"; String body = "Code: 123451"; Boolean result = EmailHandler.SendEmail(toAddress, subject, body); if (result == false) { Console.WriteLine("Unable to send email"); } else { Console.WriteLine("Email Sent!"); } }
static void Main(string[] args) { EmailHandler.SendEmail("*****@*****.**", "Testing", "Good Night <3 "); Console.WriteLine("Hello World!"); Console.ReadKey(); }