i want to send an email with my gmail account but i have this error and the email doas'nt sent ! http://up.dev-point.com/uploads1/a75d55e308e91.png My code is :
Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click
Dim SmtpServer As New SmtpClient("smtp.gmail.com", 587)
SmtpServer.Credentials = New Net.NetworkCredential("ihab@gmail.com", "pass")
Dim mail As New MailMessage("ihab@gmail.com", "ihab@gmail.com", "New", "txt")
SmtpServer.Send(mail)
End Sub