# PHP mail form not working in PHP 5.1.4

**URL:** <https://forum.kirupa.com/t/php-mail-form-not-working-in-php-5-1-4/191375>\
**Category:** programming\
**Created:** [June 20, 2006, 2:07am UTC](https://forum.kirupa.com/t/php-mail-form-not-working-in-php-5-1-4/191375 "2006-06-20T02:07:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dumsdei](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@dumsdei](https://forum.kirupa.com/u/dumsdei)\
**Post date:** [June 20, 2006, 2:07am UTC](https://forum.kirupa.com/t/php-mail-form-not-working-in-php-5-1-4/191375/1 "2006-06-20T02:07:16Z")

</div>

Hi everyone,

I have a mail form. It used to work in a different version of PHP, version 4.something… now, after changing hosts, the mail form doesnt work anymore. The PHP version that my host installed on their server is PHP 5.1.4, I can receive the email but there is no message.

here is my code:

```auto
<?php 
$sendTo = "info@advkast.com"; 
$subject = "Advkast Site Reply";
 
$headers = "From: " . $_POST["name"]; 
$headers .= "<" . $_POST["address"] . ">
"; 
$headers .= "Reply-To: " . $_POST["address"] . "
"; 
$headers .= "Return-Path: " . $_POST["address"]; 
$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers); 
?>

```

It only sends the email, with subject and sender name but no message.
