Posted by Vik Rubenfeld on 12/08/06 09:47
I've got this form mail program that is called as an action from an HTML
form. It runs with no errors, but the email is never sent - at least,
it's never received. Here's the code:
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$address = $_REQUEST['address'] ;
$city_state = $_REQUEST['city_state'] ;
$zip = $_REQUEST['zip'] ;
$phone = $_REQUEST['phone'] ;
$email = $_REQUEST['email'] ;
$comments = $_REQUEST['comments'] ;
$name = $_REQUEST['name'] ;
$text = $name . ' - ' . $address . ' - ' .
$city_state . ' - ' . $zip . ' - ' . $phone . ' - ' . $email . ' -
' . ' - ' . $comments;
mail( "an@email.com", "subject line",
"$text", "From: $email" );
header( "Location: http://www.mydomain.com/Contact/thanks.html" );
?>
What am I missing? Thanks in advance to all for any info.
[Back to original message]
|