Unfortunately, the spammers used those to overload my mailbox.
Solution - use form based email to hide the email address.
And the spammers figured out how to use that to send crap - but no where near as much.
In 1997, various groups began developing methods (such as CAPTCHA's) to protect all types of online data submissions, including form mail.
This series of pages discusses various aspects of sending email via a form ... with specific information on doing this with a GoDaddy account (good service ... but lousy help).
gdform.asp & .php | This is GoDaddy's suggested method to implement form mail |
CDONTS | This method works with IIS 6 on Windows XP (before Nov 2011) |
CDOSYS | This method works with IIS 6 & 7 on Windows XP |
CAPTCHA's | These use a graphic with distorted characters to defeat spammers |
Request.ServerVariables | This ASP object can provide the page the user was on when the form link was clicked |
Customized Form Based Email
a href="mailto:MyAccount@somewhere.org?subject=Name of Section - some_page.html" |
When I replaced the email links with form mail, I kept the same capability via links like
a href="/Feedback_Form.html?subject=Name of Section - some_page.html" |
Referring Page
document.referrer
document.write('<p> HTTP_REFERER = ' + document.referrer); |
Security Warning
That being said, I sometimes use a single server-side script to send email to different addresses. This is handled by setting a value that is used to select the actual address from a list on the server. Normally, this value is hidden, but you could also provide a pick list, comboBox, or other method for user selection. Note - the email address are never included in the form.
Other Considerations
Another consideration is organizations where several people might want email. In this case, you will want to address the email to some group address, and then add and removes users from the group as appropriate.
Author: Robert Clemenzi