I am basically having a issue with my confirmation email function, where when a member signs up on my site they do indeed receive a confirmation email but the body is not displaying. What's weird is it shows in gmail only with no problems at all...i have tried aol, yahoo, & hotmail and all 3 email addresses recieve blank confirmation emails....could my mail.php file be off somewhere or what else could it be??? I'm totally lost, not sure if its the mail.php file you want to see but if so here it is
Code: Select all
<?
$ntm3k_ncd_directive=$do_not_change;
function send_html($from, $to, $subject, $text, $html)
{
global $debug;
if ($debug) echo "<HR>DEBUG|From:$from|To:$to|Subject:$subject<HR>$text<HR>$html<HR>";
$headers = "From: $from\r";
$headers .= "Reply-To: $from\r";
$headers .= "X-Mailer: PHP/" . phpversion()."\r";
$headers .= "MIME-Version: 1.0\r";
$boundary = uniqid("MAB");
$headers .= "Content-Type: multipart/alternative" .
"; boundary = $boundary\r\r";
$headers .= "$text\r\r";
$headers .= "--$boundary\r" .
"Content-Type: text/plain; charset=ISO-8859-1\r" .
"Content-Transfer-Encoding: base64\r\r";
$headers .= chunk_split(base64_encode("$text"));
$headers .= "--$boundary\r" .
"Content-Type: text/html; charset=ISO-8859-1\r" .
"Content-Transfer-Encoding: base64\r\r";
$headers .= chunk_split(base64_encode("$html"));
mail($to, $subject, "", $headers);
}
function parse_mail($mail, $param)
{
foreach ($param as $key=>$val)
$mail=str_replace("#".$key."#",$val,$mail);
return $mail;
}
?>