Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim smtpServer As New SmtpClient
- Dim mail As New MailMessage
- smtpServer.Credentials = New Net.NetworkCredential("JoeHunt43@gmail.com", "wolves123")
- smtpServer.Port = 587
- smtpServer.Host = "smtp.gmail.com"
- smtpServer.EnableSsl = True
- mail = New MailMessage
- mail.From = New MailAddress("JoeHunt43@gmail.com")
- mail.To.Add("JoeHunt43@gmail.com")
- mail.Subject = "TextBox1.text"
- mail.Body = "TextBox2.text"
- smtpServer.Send(mail)
- MsgBox("Thanks!")
Add Comment
Please, Sign In to add comment