Guest User

Untitled

a guest
Jun 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient('smtp.gmail.com', 587);
  2. smtp.EnableSsl = true;
  3. smtp.Credentials = new System.Net.NetworkCredential("***id***", "***password***");
  4.  
  5. System.Net.Mail.MailMessage oMsg = new System.Net.Mail.MailMessage("from", "to", "subject", "body");
  6. smtp.Send(oMsg);
Add Comment
Please, Sign In to add comment