Thread: [SOLVED] Problem to send email
View Single Post
  #6  
Old 06-24-2009, 12:07 PM
sss
Guest
 
Posts: n/a
Default problem to send email

after installing php server(apache 2.2) now it shows the coding page.....


<?php

$your_email = "piyu@gmail.com";

$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'], "
<html>
<head>
<title>Contact Message</title>
</head>
<body>
Contact Message<br><br>
Name : ".$_POST['name']."<br>
Email : ".$_POST['email']."<br>
Telephone : ".$_POST['telephone']."<br><br>
Subject : ".$_POST['subject']."<br>
Message : <br>".$_POST['message']."<br>
</body>
</html>" , $headers);
header("Location: ./index.htm|?page=_contact_message.htm");
?>


plz help me out...