I use the following code to send a comment/contact form. Is there any way to encrypt the "$mailsent = mail("reikifeedback-website01@yahoo.co.uk", $name, $details);" line so that the actual e-mail address is not picked up by spammers? Thanks :-)
Doug
CODE
<TITLE>Mail Sent!</TITLE>
<body bgcolor="#FFCCFF" text="#000000">
<?php
$name = $_POST["name"];
$email = $_POST["email"];
$address1 = $_POST["address1"];
$address2 = $_POST["address2"];
$county = $_POST["county"];
$contacttype = $_POST["contacttype"];
$comments = $_POST["comments"];
$headers = "From : " . $email . "\r\n";
$details = "From : " . $name . "\r\n" . "Address : " . $address1 . "," . $address2 . "," . $county . "," . $contacttype . "," . $comments . "," . $email;
$mailsent = mail("reikifeedback-website01@yahoo.co.uk", $name, $details);
if ($mailsent) {
echo "Congratulations! The following message has been sent: <BR><BR>";
echo "<B>Name:</B> $name<BR>";
echo "<B>Email:</B> $email<BR>";
echo "<B>Address1:</B> $address1<BR>";
echo "<B>Address2:</B> $address2<BR>";
echo "<B>County:</B> $county<BR>";
echo "<B>ContactType:</B> $contacttype<BR>";
echo "<B>Comments:</B> <BR>";
echo $comments;
} else {
echo "There was an error...";
}
?>
<meta http-equiv="refresh" content="5 URL=main.html">
<B>You will shortly we taken back to the opening page - if this does not happen <A HREF="main.html" TARGET="mainFrame">click here</A></B>