Guest User

Untitled

a guest
Mar 21st, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. StringBuilder Emailbody = new StringBuilder();
  2. Emailbody.Append("Hello World!");
  3. MailMessage mail = new MailMessage();
  4. mail.To.Add("ziapitafi@mremind.com");
  5. mail.From = new MailAddress("MaxRemindHealthSystem@mremind.com");
  6. mail.Subject = " MaxRemind User PIN Code";
  7. mail.Body = Emailbody.ToString();
  8. mail.IsBodyHtml = true;
  9. SmtpClient smtpClient = new SmtpClient();
  10. smtpClient.Host = "smtpout.secureserver.net";
  11. smtpClient.Port = 25;
  12. smtpClient.EnableSsl = false;
  13. smtpClient.Credentials = new System.Net.NetworkCredential("MaxRemindHealthSystem@mremind.com", "pass");
  14. smtpClient.Send(mail);
Add Comment
Please, Sign In to add comment