# How would I create a "send to friend" form?

**URL:** <https://forum.kirupa.com/t/how-would-i-create-a-send-to-friend-form/217872>\
**Category:** Uncategorized\
**Created:** [March 2, 2007, 4:17pm UTC](https://forum.kirupa.com/t/how-would-i-create-a-send-to-friend-form/217872 "2007-03-02T16:17:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkeyhead](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@monkeyhead](https://forum.kirupa.com/u/monkeyhead)\
**Post date:** [March 2, 2007, 4:17pm UTC](https://forum.kirupa.com/t/how-would-i-create-a-send-to-friend-form/217872/1 "2007-03-02T16:17:53Z")

</div>

i can create a simple contact form (thanks to this tutorial section) but i’m having an issue with the “send to a friend” part…here is what i thought the PHP script would look like:

\<?php  
$sendTo = $\_POST[“email2”];  
$subject = “$\_POST[“name”] has sent you an E-card!”;  
$headers = "From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“email”];  
$message = “Check out this E-card!”;  
mail($sendTo, $subject, $headers, $message);  
?\>

i tested it but i won’t work…any ideas?  
Thanks in advance,  
Andre
