Guest User

Untitled

a guest
Feb 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. using (MailMessage mail = new MailMessage())
  2. {
  3. mail.From = new MailAddress("xxx@gmail.com");
  4. mail.To.Add("xxx@gmail.com");
  5. mail.Subject = "Julio olha isso 5";
  6. mail.Body = @"<script>SCRIPT aqui.</script>";
  7. mail.IsBodyHtml = true;
  8.  
  9. using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
  10. {
  11. smtp.Credentials = new NetworkCredential("xxx@gmail.com", "xxx");
  12. smtp.EnableSsl = true;
  13. smtp.Send(mail);
  14. }
  15. }
Add Comment
Please, Sign In to add comment