¿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
%>