tengo problemas
Publicado por yunior wilfredo (1 intervención) el 06/11/2008 17:35:46
en la conecion para mandar un correo desde asp.net my codigo es este
Dim Remitente As String = "[email protected]"
correo.From = New System.Net.Mail.MailAddress(Remitente, "yunior" & " " & "quiñonez", System.Text.Encoding.UTF8)
correo.To.Add("[email protected]")
correo.Subject = "Consulta Sistemas"
correo.Sender = New System.Net.Mail.MailAddress(Remitente)
correo.SubjectEncoding = System.Text.Encoding.UTF8
correo.Body = ("Consulta:" & " " & "hola2" & "<br>" & "Nombre Completo:" & " " & "yunior" & " " & "quiñonez" & "<br>" & "Email:" & " " & "[email protected] " & "<br>" & "Telefono:" & " " & "51454654" & "<br>" & "Hora:" & " " & Date.UtcNow.Hour & ":" & Date.Now.Minute & ":" & Date.Now.Second)
correo.IsBodyHtml = True
correo.BodyEncoding = System.Text.Encoding.UTF8
correo.Priority = Net.Mail.MailPriority.High
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Host = "smtp.gmail.com"
smtp.Credentials = New System.Net.NetworkCredential("[email protected]", "sistemas")
smtp.Port = 25
smtp.EnableSsl = True
smtp.Send(correo)
y me el error
No connection could be made because the target machine actively refused it
quie me puede ayudar
Dim Remitente As String = "[email protected]"
correo.From = New System.Net.Mail.MailAddress(Remitente, "yunior" & " " & "quiñonez", System.Text.Encoding.UTF8)
correo.To.Add("[email protected]")
correo.Subject = "Consulta Sistemas"
correo.Sender = New System.Net.Mail.MailAddress(Remitente)
correo.SubjectEncoding = System.Text.Encoding.UTF8
correo.Body = ("Consulta:" & " " & "hola2" & "<br>" & "Nombre Completo:" & " " & "yunior" & " " & "quiñonez" & "<br>" & "Email:" & " " & "[email protected] " & "<br>" & "Telefono:" & " " & "51454654" & "<br>" & "Hora:" & " " & Date.UtcNow.Hour & ":" & Date.Now.Minute & ":" & Date.Now.Second)
correo.IsBodyHtml = True
correo.BodyEncoding = System.Text.Encoding.UTF8
correo.Priority = Net.Mail.MailPriority.High
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Host = "smtp.gmail.com"
smtp.Credentials = New System.Net.NetworkCredential("[email protected]", "sistemas")
smtp.Port = 25
smtp.EnableSsl = True
smtp.Send(correo)
y me el error
No connection could be made because the target machine actively refused it
quie me puede ayudar
Valora esta pregunta


0