Error : 505, local host gmail, not gatway (ASP)

Tags:
ASP
I have function to send mail.....by using ASP.

Function sendMail() Dim confirmMail On Error Resume Next Set confirmMail = Server.CreateObject("Persits.MailSender") confirmMail.Host = "mail.selltest-online.com" confirmMail.FromName = "bourng@gmail.com" confirmMail.From = "no_reply@selltest-online.com" confirmMail.AddAddress "bourng@gmail.com" confirmMail.Subject = "Subject testing sending mail" confirmMail.Body = "Body testing send mail." '--On Error Resume Next confirmMail.Send Set confirmMail = Nothing If Err <> 0 Then ' error occurred Call Response.Write(Err.Description) Else Call Response.Write("message sent") End If End Function 


When I tested it, it gave this error message "505, local host gmail, not gateway" Please resolve this function.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gent01
    This might be your mail object's way of telling you gmail isn't accepting your message. Try taking out the gmail addresses and see if it works. Email servers will do a reverse lookup on you IP and see if it matches the presented domain name. Some even go as far as checkign the MX record to see if your server is an authorized smtp server for your domain. =
    1,870 pointsBadges:
    report
  • ToddN2000
    I believe the IP validation and other info that Gent01 mentioned is possibly to cut down on e-mail spam bots. Not a bad idea. On the flip side, sometimes to much security slows down progress if you need to develop a workaround.
    8,705 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following