Jump to content

form not sending mail out


ccrevcypsys

Recommended Posts

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", "[email protected]");

$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("[email protected]", $subject, $message, $headers);
if($mail==TRUE){
header("Location: index.php?m=T");
}

Link to comment
https://forums.phpfreaks.com/topic/85612-form-not-sending-mail-out/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.