E-mail addresses published on the web usually fall victim to scripts written to harvest lists for spammers. We recommend one of two methods to incorporate e-mail into your web pages that significantly reduce the risk of spam:
If you are using one of the CoF templates Level 1 - 3, you can skip to step 2. Make sure you are including head_body_begin.inc with 'include', not 'readfile'.
Otherwise, copy the script below into the head element.
<script type="text/javascript">
<!--
// Modified protected email script
// Original script by Joe Maller (http://www.joemaller.com)
// Modified by Mike O'Reilly (http://www.supportnexus.com) and
// Ben Shields (http://ben.falktech.com)
// Function form added by Michael Hall 4/24/03
function safemail(emailN, emailD, emailT) {
emailN=(emailN + '@' + emailD)
if(!emailT)
{ emailT = emailN}
document.write("<a href=\"mailto:" + emailN + "\">" + emailT + '</a>')
}
-->
</script>
To insert an e-mail link, place the following code where you want the email address to appear:
<script type="text/javascript">safemail('recipient', 'domain', 'text')</script>
Change 'recipient', 'domain' and 'text' following the example,
where
'recipient' = john.doe
'domain' = oregonstate.edu
'text' = email John Doe (Delete 'text' and its preceding comma if you want the email address displayed rather than other text.
OSU Central Web Services has also devised an automated web form system. However, each recipient you intend to list on your web site will need to set up a separate profile before you can use it. The form is more secure and anonymous than the mailto script, but impractical for any more than a few addressees.