Need Help with a simple task....PHP FORM error...

Hi!

I cant figure out why i cant receive my email…The php codes are below…my website is www.kirkPhylles.com

Thanks for looking…:slight_smile:
kirk

<?php $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; if(empty($_POST['php_mail'])){ //echo"no email address found"; echo "retval=0"; exit; } $senderName = $_POST['php_name']; $senderEmail = $_POST['php_mail']; $senderMsg = nl2br($_POST['php_message']); $sitename = "http://www.kirkphylles.com"; $to = "[email protected]"; $ToName = "Kirk Phylles"; $date = date("m/d/Y H:i:s"); $ToSubject ="Message from $sitename"; $comments = $msgPost; $EmailBody = "A visitor to $sitename has left the following information
Sent By: $senderName, Email : $senderEmail

Message Sent:
$senderMsg
"; $EmailFooter = "
Sent: $date

"; $Message = $EmailBody.$EmailFooter; $ok = @mail($to, $ToSubject, $Message, $headers . "From:$senderName"); if($ok){ echo "retval=1"; }else{ echo "retval=0"; } ?>

[php]$headers = “MIME-Version: 1.0\r\n”;
$headers .= “Content-type: text/html; charset=iso-8859-1\r\n”;
if(empty($_POST[‘php_mail’])){

//echo"no email address found";

echo “retval=0”;

exit;
}
$senderName

= $_POST[‘php_name’];
$senderEmail

= $_POST[‘php_mail’];
$senderMsg

= nl2br($_POST[‘php_message’]);
$sitename

= “http://kirkphylles.com”;
$to

= "[email protected]";
$ToName

= “kirk”;
$date

= date(“m/d/Y H:i:s”);
$ToSubject

=“Message from $sitename”;
$comments

= $msgPost;
$EmailBody

= "A visitor to $sitename has left the following information

Sent By: $senderName, Email : $senderEmail



Message Sent:


$senderMsg
";
$EmailFooter

= “
Sent: $date

”;
$Message

= $EmailBody.$EmailFooter;
$ok = @mail($to, $ToSubject, $Message, $headers . “From:$senderName”);
if($ok){

echo “retval=1”;
}else{

echo “retval=0”;
}

?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service