# Question about Senocular's email.php tute

**URL:** <https://forum.kirupa.com/t/question-about-senoculars-email-php-tute/246296>\
**Category:** programming\
**Created:** [December 9, 2007, 8:19pm UTC](https://forum.kirupa.com/t/question-about-senoculars-email-php-tute/246296 "2007-12-09T20:19:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [December 9, 2007, 8:19pm UTC](https://forum.kirupa.com/t/question-about-senoculars-email-php-tute/246296/1 "2007-12-09T20:19:40Z")

</div>

I added an additional text input form field with a variable name of phone & I would like name to also print to the body of the email, so I added the following but must have broken as I didn’t get my test. The comments field has a variable name of message

$name = $\_POST[“name”];  
$phone = $\_POST[“phone”];  
$message = $\_POST[“message”];

// once the variables have been defined, they can be included  
// in the mail function call which will send you an email  
mail($sendTo, $subject, $name, $phone, $message, $headers);

Before:

// now we can add the content of the message to a body variable  
$message = $\_POST[“message”];

// once the variables have been defined, they can be included  
// in the mail function call which will send you an email  
mail($sendTo, $subject, $message, $headers);
