# Php mail form not working

**URL:** <https://forum.kirupa.com/t/php-mail-form-not-working/281953>\
**Category:** Uncategorized\
**Created:** [February 16, 2009, 2:49am UTC](https://forum.kirupa.com/t/php-mail-form-not-working/281953 "2009-02-16T02:49:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trnghosh](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@trnghosh](https://forum.kirupa.com/u/trnghosh)\
**Post date:** [February 16, 2009, 2:49am UTC](https://forum.kirupa.com/t/php-mail-form-not-working/281953/1 "2009-02-16T02:49:18Z")

</div>

Respected all of you.

This php mail form is not working in the Yahoo Server though otherwise worked in other Server. I talked with one Yahoo Service Representative for my Server and they stated that everything is fine with the Server and that the only issue they can see is you coded the script **in PHP 5** because Yahoo only supports version **PHP version 4**.

CAN ANYBODY HAVE SOME TIME TO MODIFY THE SCRIPT SO THAT IT WORKS FINE IN YAHOO SERVER ALSO.  
ALSO PLEASE HELP ME AS I NEED IT IMMEDIATELY. .

\<?

$destination="trnghosh@gmail.com";  
$subject = “Message From trnghosh”;  
$name=$\_POST[‘name’];  
$telephone=$\_POST[‘telephone’];  
$email=$\_POST[‘email’];  
$mes=$\_POST[‘message’];  
$headers = "From: ". $name . " " . “\<” . $email . "\>  
";  
$headers .= "Reply-To: " . $email . "  
";  
$headers .= "Return-path: ". $email;  
$mes="Name: $name

Telephone: $telephone

Email: $email

Message: $mes  
";  
mail($destination,$subject,$mes,$headers); ?\>

Regards  
trnghosh
