# PHP Email

**URL:** <https://forum.kirupa.com/t/php-email/276273>\
**Category:** Uncategorized\
**Created:** [November 25, 2008, 6:38am UTC](https://forum.kirupa.com/t/php-email/276273 "2008-11-25T06:38:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwebb21](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@dwebb21](https://forum.kirupa.com/u/dwebb21)\
**Post date:** [November 25, 2008, 6:38am UTC](https://forum.kirupa.com/t/php-email/276273/1 "2008-11-25T06:38:48Z")

</div>

Below is the PHP code that I am using to submit my website email form. It is working perfectly. I want to be able to have this email sent to the email specified below as well as to the email of the person filling out the form. I have tried a few different things but I do not know much php. I have done much searching online and cannot figure it out.

Thank you in advance for your help. It is really frustrating me.

\<?php

$to = ‘danny@getshifty.com’;

$subject = ‘Getshifty Contact’;

$message = “Getshifty contact from the WEBSITE!” . “\<br /\>” ."\<br /\>" ."\<br /\>" .

$message = “\<br /\>” .

$message = "Name: " . $\_POST[‘name’] . "  
" . “\<br /\>” .

$message = "E-Mail: " . $\_POST[‘email’] . "  
" . “\<br /\>” .

$message = "Phone: " . $\_POST[‘phone’] . "  
" . “\<br /\>” .

$message = "Location: " . $\_POST[‘location’] . "  
" . “\<br /\>” .

$message = "Message: " . $\_POST[‘message’] . "  
" . “\<br /\>” .

“\<br /\>” .  
“\<br /\>” .  
“\<br /\>” .

$headers = 'From: ’ .

$\_POST[‘email’] . "  
" .  
'Reply-To: ’ .

$email . "  
" .  
‘Content-type: text/html’ . "  
" .  
‘X-Mailer: PHP/’ . phpversion();

mail($to, $subject, $message, $headers);  
?\>
