PHP mailform
Posted by: bluestorm909
Posted on: 2006-07-12 15:01:00
I have a mailform using PHP but I don't know why its not working. Could Anyone take a look see what's wrong with my code ? Thanks
<?php
$to = "billing@bluestorm909.com";
$date = date('l dS of F Y h:i:s A');
$msg = "Order from your sitenName: ".$_POST['name']."nTelephone: ".$_POST['tel']."nEmail: ".$_POST['email']."nDetails: ".$_POST['details']."nDate: $date";
//mail($to, "Order", $msg);
$fp = fopen("mail.txt", "w");
fwrite($fp, $msg);
fclose($fp);
echo "code=ok";
?>