ccrevcypsys Posted January 11, 2008 Share Posted January 11, 2008 I dont know why this mail form doesnt work... If someone can help me out with this please i need to get this done and i cant figure it out... ini_set("SMTP", "mail.fernleyflood.org"); ini_set("sendmail_from", "admin@cypsys.com"); $from = $_POST['email1']."@".$_POST['email2']; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= 'From: <'. $from . '>' . "\r\n"; $subject = "Inquery from Fernleyfloods.org"; $notes = stripcslashes($_POST['question']); $message = "From:".$_POST['name']."\n Message:" . $notes . "\n Location:" . $_POST['city'].",".$_POST['state']; $mail=mail("ccrevilng@cypsys.com", $subject, $message, $headers); if($mail==TRUE){ header("Location: index.php?m=T"); } Quote Link to comment Share on other sites More sharing options...
revraz Posted January 12, 2008 Share Posted January 12, 2008 Try using the mail() function without variables and just providing the required info to see if it sends. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.