Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/09/2009, 05:16
Elig
 
Fecha de Ingreso: noviembre-2002
Ubicación: Elche
Mensajes: 548
Antigüedad: 22 años, 5 meses
Puntos: 0
Problema con AspEmail

¿Cómo evito este error?

503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.


Este es el código que utilizo habitualmente:

<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Username = "usuario"
Mail.Password = "123456"
Mail.Host = session("mail_host")
Mail.From = session("mail_from")
Mail.FromName = "Prueba"
Mail.AddAddress correo_cliente

Mail.Subject = "Prueba de correo"

Mail.Body = "<HTML><BODY>Prueba de correo</body></HTML>"

Mail.IsHTML = True
strErr = ""
bSuccess = False
On Error Resume Next
Mail.Send
If Err <> 0 Then
strErr = Err.Description
response.write strErr
else
response.write "Ha funcionado"
end if
%>