An error occurred: 550 5.7.1 Unable to relay for ... Using ASPEmail
Posted on 2006-07-04
Whenever I try to send via ASPEmail I get this error: An error occurred: 550 5.7.1 Unable to relay for
I have tried changing Mail.Host from localhost to the actual SMTP server. I also changed from sending to my Yahoo account to another account to see if it was something with the Yahoo servers (perhaps blocking as spam). Neither change has corrected this error.
Any help is very much appreciated.
Here is the piece of code tied to it:
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "localhost"
Mail.From = "email@example.com"
Mail.FromName = "Me"
Mail.Subject = "Test Email"
Mail.Body = "Test Email<br><br>Test"
Mail.IsHTML = TRUE
On Error Resume Next
If Err <> 0 Then
Response.Write "An error occurred: " & Err.Description