I've just had my asp mail scripts pulled by my ISP because they think the scripts are vulnerable to misuse by spammers. If anyone can help I'd be grateful.
I use a simple contact form on the website that passes the data to an ASP page for processing. The code is as follows:
Set MyMail = CreateObject("CDONTS.NewMail")
MyMail.From = "feedback@mysite.co.uk"
MyMail.To = Request.Form("FromField")
MyMail.Subject = "Thanks from ..."
MyMail.BodyFormat = "0"
MyMail.MailFormat = "0"
MyMail.Body = "Blah, blah"
MyMail.Send
Set MyMail = Nothing
and it gets repeated to send the data to the administrator.
The comment from the ISP was
"As it stands people can just post "Request.Form("FromField")" and send email to any email address this like. You may need to place some form of validation in your ASP files."
But I've no idea how to do that. Can anyone recommend a way to validating, or better yet a simple, foolproof way of forwarding contact email?
Regards
Bob