The best solution is to use a PHP contact form, therefore no way of getting you email address to spam you.
My contact form
and heres the php scripting:
Code:
<?php
// ver. 1.11 - I noticed that some junk mail controls identifies messages send with this script as spam. I changed the headers a little bit to solve this problem. The header location function is only used now if the mail is posted successfully.
//ver 1.10 added some headers, incl. Mime mail to be accepted by more mail servers
$goto_after_mail = "thankyou.html"; // this is the page which is shown after the mail is submitted
$from_mail = $_REQUEST['from_Email'];
$from_name = $_REQUEST['from_Name']; // use both value's from your form
$header = "From: \"$from_name\" <$from_mail>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/plain; charset=\"utf-8\"\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n";
$subject = "Your webform posted at ".date("d-m-Y"); //your mailsubject incl. current date
foreach ($_REQUEST as $key => $val) {
if ($key != "from_email" && $key != "from_name") { //skip, this values are already in the header
$body .= $key . " : " . $val . "\r\n";
}
}
if (mail("webmaster@apnaonline.ca", $subject, $body, $header)) {
header("Location: ".$goto_after_mail);
}
?>
You can customize it however you want. I haven't received any spam yet, except for a couple form people who have taken the time to fill out the form and put spam sites in the "comment" box.
Geoserv.