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 testing it alert this error message "505, local host gmail, not gatway"
Please resolve this function...
Software/Hardware used:
ASKED:
July 23, 2007 10:17 PM
UPDATED:
June 5, 2012 2:25 PM
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. =
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.