D
Don Quijote de Nicaragua
Hi, everyone I try to send a simple e-mail witch this Code, but always
send me a error messages:
"ERROR: Failure sending mail."
Thansk You.
Don Quijote de Nicaragua.
Elder Soto.
Dim correo As New System.Net.Mail.MailMessage()
correo.From = New
System.Net.Mail.MailAddress("(e-mail address removed)")
correo.To.Add("(e-mail address removed)")
correo.Subject = "Prueba Hola Mundo" & "Fecha y hora GMT: " &
_
DateTime.Now.ToUniversalTime.ToString("dd/MM/
yyyy HH:mm:ss")
correo.Body = "Cuerpo"
correo.IsBodyHtml = False
correo.Priority = System.Net.Mail.MailPriority.Normal
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Host = "mail.turbonett.com.ni"
smtp.Credentials = New System.Net.NetworkCredential("myUser",
"MyPassword")
smtp.EnableSsl = False
'
Try
smtp.Send(correo)
Response.Write("Mensaje enviado satisfactoriamente")
Catch ex As Exception
Response.Write("ERROR: " & ex.Message)
End Try
send me a error messages:
"ERROR: Failure sending mail."
Thansk You.
Don Quijote de Nicaragua.
Elder Soto.
Dim correo As New System.Net.Mail.MailMessage()
correo.From = New
System.Net.Mail.MailAddress("(e-mail address removed)")
correo.To.Add("(e-mail address removed)")
correo.Subject = "Prueba Hola Mundo" & "Fecha y hora GMT: " &
_
DateTime.Now.ToUniversalTime.ToString("dd/MM/
yyyy HH:mm:ss")
correo.Body = "Cuerpo"
correo.IsBodyHtml = False
correo.Priority = System.Net.Mail.MailPriority.Normal
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Host = "mail.turbonett.com.ni"
smtp.Credentials = New System.Net.NetworkCredential("myUser",
"MyPassword")
smtp.EnableSsl = False
'
Try
smtp.Send(correo)
Response.Write("Mensaje enviado satisfactoriamente")
Catch ex As Exception
Response.Write("ERROR: " & ex.Message)
End Try