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 FormName:
E-mail Address:
Message:
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);
?>
Thanks,<?php echo $_POST['name']; ?>, for your message.
Your E-mail address: <?php echo $_POST['email']; ?>
Your Message:
<?php echo $_POST['message']; ?>
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