i can create a simple contact form (thanks to this tutorial section) but i’m having an issue with the “send to a friend” part…here is what i thought the PHP script would look like:
<?php
$sendTo = $_POST[“email2”];
$subject = “$_POST[“name”] has sent you an E-card!”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-Path: " . $_POST[“email”];
$message = “Check out this E-card!”;
mail($sendTo, $subject, $headers, $message);
?>
i tested it but i won’t work…any ideas?
Thanks in advance,
Andre