Dear all,
I got a problem when sending a html page using mail().
$to .= 'info@abc.com';
$subject = 'Mail from Master';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; harset=big5' . "\r\n";
$headers .= 'From: Info <info@def.com>' . "\r\n";
mail($to, $subject, $mail_message, $headers);
where $mail_message is the HTML source code.
But when i receive the email, it shows the html source code instead of display the html page. I'm sure $mail_message contains complete html source code.
What problem is it? Is there anything missing?
Thanks for your help.
k23
I got a problem when sending a html page using mail().
$to .= 'info@abc.com';
$subject = 'Mail from Master';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; harset=big5' . "\r\n";
$headers .= 'From: Info <info@def.com>' . "\r\n";
mail($to, $subject, $mail_message, $headers);
where $mail_message is the HTML source code.
But when i receive the email, it shows the html source code instead of display the html page. I'm sure $mail_message contains complete html source code.
What problem is it? Is there anything missing?
Thanks for your help.
k23