Posted on: 5/21/2015 7:29:47 PM | Views : 602

private static void SendEmail(string EmailMessage) { MailMessage mail = new MailMessage(); mail.To.Add("myemail@gmail.com"); mail.From = new MailAddress("question@abc.com"); mail.Subject = "Testing"; mail.Body = EmailMessage; mail.IsBodyHtml = true; try { SmtpClient smtpClient = new SmtpClient(); smtpClient.Send(mail); } catch (Exception ex) { LogCriticalMessage("Notifications didn't send because " + ex.Message); } } <system.net> <mailSettings> <smtp deliveryMethod="Network"> <network defaultCredentials="true" host="host.abc.com" port="25"/> ...

Go to the complete details ...