A
AbdEllah Gogop
Guest
i got error when sending email via smtp in a wen application by vb.NET
the error was:
The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
the code was :
Dim mm As New MailMessage(TextBox1.Text, TextBox2.Text)
mm.Body = "bbb"
mm.Subject = "sss"
Dim sc As New SmtpClient()
sc.Host = "smtp-mail.outlook.com" ' "smtp.live.com"
sc.Port = 25
sc.EnableSsl = True
sc.DeliveryMethod = SmtpDeliveryMethod.Network
sc.UseDefaultCredentials = False
sc.Credentials = New System.Net.NetworkCredential("abdellahgogop@hotmail.com", _
"******************")
sc.Send(mm)
Continue reading...
the error was:
The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
the code was :
Dim mm As New MailMessage(TextBox1.Text, TextBox2.Text)
mm.Body = "bbb"
mm.Subject = "sss"
Dim sc As New SmtpClient()
sc.Host = "smtp-mail.outlook.com" ' "smtp.live.com"
sc.Port = 25
sc.EnableSsl = True
sc.DeliveryMethod = SmtpDeliveryMethod.Network
sc.UseDefaultCredentials = False
sc.Credentials = New System.Net.NetworkCredential("abdellahgogop@hotmail.com", _
"******************")
sc.Send(mm)
Continue reading...