Mail From Help
Posted: Thu Feb 05, 2009 1:31 pm
I have php code setup
When someone fills out my form http://www.tacobills.com/form.html
I want the email address field to be the FROM in the email header that I receive
Here is my current php
When someone fills out my form http://www.tacobills.com/form.html
I want the email address field to be the FROM in the email header that I receive
Here is my current php
Code: Select all
<?php
//$mail_body = $_POST['submitterName'];
$mail_body .= $_POST['submitterEmail'];
$mail_body .= "\n";
$mail_body .= "\n";
$mail_body .= $_POST['submitterPhone'];
$mail_body .= "\n";
$mail_body .= "\n";
$mail_body .= $_POST['submitterComments'];
$recipient = 'Ice2257@gmail.com';
$subject = 'You have an order from ' . $_POST['submitterName'];
mail($recipient, $subject,$mail_body)
header("location: thankyou.html");
?>