Page 1 of 1

Mail From Help

Posted: Thu Feb 05, 2009 1:31 pm
by Ice2257
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

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");
 
?>

Re: Mail From Help

Posted: Mon Feb 09, 2009 6:02 am
by samsolomonraj
what you are trying to say??? What is your need???

Re: Mail From Help

Posted: Mon Feb 09, 2009 6:09 am
by samsolomonraj
In your mail() the from address is missing.. You add from address by using header field in the mail function.

Bye...