Guest User

Untitled

a guest
Jul 16th, 2018
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Dim smtpServer As New SmtpClient
  2. Dim mail As New MailMessage
  3. smtpServer.Credentials = New Net.NetworkCredential("JoeHunt43@gmail.com", "wolves123")
  4. smtpServer.Port = 587
  5. smtpServer.Host = "smtp.gmail.com"
  6. smtpServer.EnableSsl = True
  7. mail = New MailMessage
  8. mail.From = New MailAddress("JoeHunt43@gmail.com")
  9. mail.To.Add("JoeHunt43@gmail.com")
  10. mail.Subject = "TextBox1.text"
  11. mail.Body = "TextBox2.text"
  12. smtpServer.Send(mail)
  13. MsgBox("Thanks!")
Add Comment
Please, Sign In to add comment