Here is the code, someone please tell me what I am doing wrong,
Code: Select all
<?php
$sendTo = "doximagry@gmail.com";
$subject = "(Website) - Contact Form";
$email = $_POST['email'];
$name = $_POST['name'];
$message = $_POST['message'];
//send mail
$headers = "From: $email\r\n";
//$headers .= 'MIME-Version: 1.0' . "\r\n";
//$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$msg = "The following information has been submited via website:\n\nE-mail:".$email."\n\nName:".$name."\n\nMessage:".$message."";
mail($sendTo, $subject, $msg, $headers);
echo header ("Location: http://www.thelonephotographer.com");
?>