Advertisement
Guest User

e-mail spammer by excalibur

a guest
Aug 20th, 2014
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.90 KB | None | 0 0
  1. Imports System.Net
  2. Imports System.Net.Mail
  3. Public Class main
  4.  
  5.     Sub SendMail()
  6.         Try
  7.             Dim Mail As New MailMessage
  8.             Mail.Subject = "You Are SpaMMeD"
  9.             Mail.To.Add(TextBox1.Text)
  10.             Mail.From = New MailAddress("yourE-mail@gmail.com") 'Your email address
  11.             Mail.Body = "SpaM SpaM SpaM" 'Body of your message..
  12.  
  13.             Dim SMTP As New SmtpClient("smtp.gmail.com")
  14.             SMTP.EnableSsl = True
  15.             SMTP.Credentials = New System.Net.NetworkCredential("yourE-mail@gmail.com", "your password here") 'Enter your information here
  16.             SMTP.Port = "587"
  17.             SMTP.Send(Mail)
  18.         Catch ex As Exception
  19.             send.Stop()
  20.             MessageBox.Show("ERROR")
  21.         End Try
  22.     End Sub
  23.  
  24.     Dim i As Integer
  25.     Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles send.Tick
  26.         Dim t As New Threading.Thread(New Threading.ThreadStart(AddressOf SendMail))
  27.         t.Start()
  28.         i = i + 1
  29.         s.Text = "Emails Sent: " & i
  30.  
  31.     End Sub
  32.  
  33.     Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
  34.         Button1.Enabled = False
  35.         TextBox1.Enabled = False
  36.         sendInterval.Enabled = False
  37.  
  38.         send.Start()
  39.         send.Interval = sendInterval.Value
  40.     End Sub
  41.  
  42.     Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
  43.         Button1.Enabled = True
  44.         TextBox1.Enabled = True
  45.         sendInterval.Enabled = True
  46.  
  47.         send.Stop()
  48.     End Sub
  49.  
  50.     Private Sub Form1_FormClosed(sender As System.Object, e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed
  51.         End
  52.     End Sub
  53.  
  54.     Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
  55.  
  56.     End Sub
  57. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement