Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient('smtp.gmail.com', 587);
- smtp.EnableSsl = true;
- smtp.Credentials = new System.Net.NetworkCredential("***id***", "***password***");
- System.Net.Mail.MailMessage oMsg = new System.Net.Mail.MailMessage("from", "to", "subject", "body");
- smtp.Send(oMsg);
Add Comment
Please, Sign In to add comment