php form not sending e-mail

Hello,

I trying to send a simply form by e-mail using Xampp 1.8.2 with php 5.5.9. I want to use my yahoo account to send the e-mail.

This is the form i’m trying to send.

[code]

E-mail Form

Name:

E-mail Address:

Message:

Send Message [/code]

Here is the code that suppose to send it
[php]<?php
//start building the mail string
$msg = “Name: “.$_Post[‘name’].”\r\n”;
$msg .= “E-mail: “.$_Post[‘email’].”\r\n”;
$msg .= “Message " .$_post[‘message’].”\r\n";

//set up the mail
$recipient = "[email protected]";
$subject = “Form Submission Results”;
$mailheaders = “From: Web Site [email protected] \r\n”;
$mailheaders .= " Reply - To: ".$_Post[‘email’];

//Send the mail
mail($recipient, $subject, $msg, $mailheaders);
?>

Send mail from the form in Listing 11.10

Thanks,<?php echo $_POST['name']; ?>, for your message.

Your E-mail address: <?php echo $_POST['email']; ?>

Your Message:
<?php echo $_POST['message']; ?>

[/php]

this is the result i get when i fill out and submit the form.
\r\n"; $mailheaders .= " Reply - To: ".$_Post[‘email’]; //Send the mail mail($recipient, $subject, $msg, $mailheaders); ?>

Thanks, for your message.

Your E-mail address:

Your Message:

Thank you for any help

is there any reason why it has to be on 2 separate pages?

Your textarea name is msg, not message and the button should be

Sponsor our Newsletter | Privacy Policy | Terms of Service