Hi all,
My HTML mail is displaying fine with Yahoo, Hotmail, and a few other HTML enable mailers, but not Outlook Express. This is what I have here.
<?php
require_once('Mail.php');
require_once('Mail/mime.php');
$to = $_POST["email_addr"];
$from = "author@email.com>";
$subject = "The Certificate";
$textMessage = "Sorry, but you need HTML mailer to see the certificate correctly.";
$htmlMessage = " <html><body>tags go here</body></html>";
$cslf = "\r\n";
$headers = array('From' => $from,
'Subject' => $subject);
$mime = new Mail_Mime($cslf);
$mime->setTXTBody($textMessage);
$mime->setHTMLBody($htmlMessage);
$body = $mime->get();
$hdrs = $mime->headers($headers);
$mail =& Mail::factory('mail');
$mail->send($to, $hdrs, $body);
?>
I am seeing both plain text and html codes on outlook express. It should only show text if the users' mailer can't show HTML, but it is showing all text and codes. Please help. It is driving me nuts for two days now. Any help appreciated. Thanks a bunch.
Phwae