# Php email tutorial question RE: php script!

**URL:** <https://forum.kirupa.com/t/php-email-tutorial-question-re-php-script/223156>\
**Category:** Uncategorized\
**Created:** [April 19, 2007, 10:47pm UTC](https://forum.kirupa.com/t/php-email-tutorial-question-re-php-script/223156 "2007-04-19T22:47:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Auona](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Auona](https://forum.kirupa.com/u/Auona)\
**Post date:** [April 19, 2007, 10:47pm UTC](https://forum.kirupa.com/t/php-email-tutorial-question-re-php-script/223156/1 "2007-04-19T22:47:31Z")

</div>

I am trying to add a few more fields to the php email tutorial, but I am not having luck getting the php script to work with the new data - this is how I tried to do my php script:

$sendTo = “[auona@yahoo.com](mailto:auona@yahoo.com)”;  
$subject = $\_POST[“subject”];  
$headers = “From: " . $\_POST[“name”] .” \<" . $\_POST[“email”] ."\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-path: " . $\_POST[“email”];  
$comments = $\_POST[“message”];  
$company = $\_POST[“company”];  
$address = $\_POST[“address”];  
$city = $\_POST[“city”];  
$state = $\_POST[“state”];  
$zip = $\_POST[“zip”];  
$phone = $\_POST[“phone”];  
$joblocation = $\_POST[“joblocation”];  
[COLOR=red]$message = ($comments, $company, $address, $city, $state, $zip, $phone, $joblocation);[/COLOR]  
mail($sendTo, $subject, $body, $headers);

I tried to change the $message to $body as I saw in another example with no luck.  
Might anyone be willing to help?  
Thank you.
