daily pastebin goal
53%
SHARE
TWEET

email notif login -domo

a guest Feb 14th, 2018 242 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  public class Helper
  2.     {
  3.    public static void SendEmail(string email, string subject, string message)
  4.         {
  5.             MailMessage emailMessage = new MailMessage();
  6.             emailMessage.From = new MailAddress("benilde.web.development@gmail.com", "The Administrator");
  7.             emailMessage.To.Add(new MailAddress(email));
  8.             emailMessage.Subject = subject;
  9.             emailMessage.Body = message;
  10.             emailMessage.IsBodyHtml = true;
  11.             emailMessage.Priority = MailPriority.Normal;
  12.             SmtpClient MailClient = new SmtpClient("smtp.gmail.com", 587);
  13.             MailClient.EnableSsl = true;
  14.             MailClient.Credentials = new System.Net.NetworkCredential("benilde.web.development@gmail.com", "Athisisalongpassword1234");
  15.             MailClient.Send(emailMessage);
  16.         }
  17.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top