# PHP Mailing Problem

**URL:** <https://forum.kirupa.com/t/php-mailing-problem/205017>\
**Category:** flash\
**Created:** [October 25, 2006, 12:58pm UTC](https://forum.kirupa.com/t/php-mailing-problem/205017 "2006-10-25T12:58:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jezzhaigh](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jezzhaigh](https://forum.kirupa.com/u/jezzhaigh)\
**Post date:** [October 25, 2006, 12:58pm UTC](https://forum.kirupa.com/t/php-mailing-problem/205017/1 "2006-10-25T12:58:38Z")

</div>

Hello,

I’ve been using a server to test a site, which has PHP 4.4.1. All the mailing forms work perfectly. Have just uploaded it to the actual server and one of the forms doesn’t work. The PHP file is below:

\<?php

$sendTo = “_%&$&^@_$&%&%^&.co.uk”;  
$subject = “Website Booking Enquiry”;

$headers = “From: " . $\_POST[“name”] .” “. $\_POST[“lastname”] . “\<” . $\_POST[“email”] .”\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-path: " . $\_POST[“email”];

$name = $\_REQUEST[“name”];  
$company = $\_REQUEST[“company”];  
$address = $\_REQUEST[“address”];  
$email = $\_REQUEST[“email”];  
$tel = $\_REQUEST[“tel”];  
$act = $\_REQUEST[“act”];  
$date = $\_REQUEST[“date”];  
$time = $\_REQUEST[“time”];  
$type = $\_REQUEST[“type”];  
$vname = $\_REQUEST[“vname”];  
$city = $\_REQUEST[“city”];  
$cost = $\_REQUEST[“cost”];  
$marketing = $\_REQUEST[“marketing”];  
$other = $\_REQUEST[“other”];

```
    $body= "Contact : " . $name . "

```

";  
$body .= "Company : " . $company . "  
";  
$body .= "Address : " . $address . "  
";  
$body .= "Email : " . $email . "  
";  
$body .= "Tel : " . $tel . "  
";  
$body .= "Act : " . $act . "  
";  
$body .= "Date : " . $date . "  
";  
$body .= "Time : " . $time . "  
";  
$body .= "Type : " . $type . "  
";  
$body .= "Venue : " . $vname . "  
";  
$body .= "City : " . $city . "  
";  
$body .= "Budget : " . $cost . "  
";  
$body .= "Marketing : " . $marketing . "  
";  
$body .= "Other : " . $other . "  
";

mail($sendTo, $subject, $body, $headers);

?\>

Any Ideas - ?

---

<div class="post-metadata">

**Author:** ![jezzhaigh](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jezzhaigh](https://forum.kirupa.com/u/jezzhaigh)\
**Post date:** [October 25, 2006, 6:08pm UTC](https://forum.kirupa.com/t/php-mailing-problem/205017/2 "2006-10-25T18:08:47Z")

</div>

It wasn’t the script it was a flash issue (proceeding before it had chance to POST the data).
