Please help!
In my website I send a welcome email to new members in html format. To do this I use the mail() function within a function I have created myself (see below). This fuction has been tested with all major mail programs and works just fine, but a particular user came back to me saying that he's received a blank email (his email address ends in @free.fr). I've sent the email again, but the same problem occured. Does anyone know what the cause could be?
Here's the function I have created to send html emails (arguments are self-explanatory):
function html_mail ($from_addr, $from_name, $to, $subject, $html_msg)
{
$html_msg = '
<html>
<head>
<title>'.$subject.'</title>
</head>
<body>'
.$html_msg.'
</body>
</html>
';
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: ".$from_name." <".$from_addr.">";
return(mail($to, $subject, $html_msg, $headers));
}
Please help!!
Thank you
Roberto






