"; $re = "ContactMe message from ".$lvisitor; $hd = "From: <".$lreplyto.">\n"; $hd.= "X-Sender: <".$lreplyto.">\n"; $hd.= "X-Mailer: PHP\n"; //mailer $hd.= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal $hd.= "Return-Path: <".$lreplyto.">\n"; $hd.= "MIME-Version: 1.0\n"; $hd.= "Content-Type: text/html; charset=iso-8859-1\n"; // Convert newlines to
$bd = ereg_replace( "\n|\r|\n\r|\r\n", "
", $lmessage ); // Convert two
s to a

$bd = eregi_replace( "

", "

", $bd ); // Disable certain HTML tags $bd = eregi_replace( " 1000) { $tmp .= "\n"; $since = 0; } } } $bd = $tmp; $bd .= "\n


Sender's IP address: ".$REMOTE_ADDR; $bd .= "\n
Subject(s): ".$lsubject; if (mail( $to, $re, $bd, $hd )) { $msg = "Your message has been sent to the WebMaster."; $snt = "true"; $frm = "false"; } else { $msg = "I@'m sorry, your messages could not be sent. "; $msg.= "It@'s not your fault, something isn@'t working right. "; $msg.= "Please try again later."; $snt = "false"; $frm = "false"; } } else { $msg = "Messages from your current IP address are blocked because "; $msg.= "someone has sent me spam or an otherwise unacceptable email "; $msg.= "from it. If this wasn@'t you, I@'m sorry for the inconvenience."; $snt = "false"; $frm = "false"; } } $pst = "true"; } else { $snt = "false"; $frm = "true"; $pst = "false"; $msg = "none"; } $FmtPV['$CUFSent'] = "'".$snt."'"; $FmtPV['$CUFForm'] = "'".$frm."'"; $FmtPV['$CUFPost'] = "'".$pst."'"; $FmtPV['$CUFMess'] = '"'.$msg.'"'; // Must use ' outside because msg may contain '