[imp] enabling HTML tags
jkpsj
jkpsj at yahoo.com
Wed Jan 15 06:42:17 PST 2003
i want to send html mail from my php script, but it ended up with the html tags showing up when
reading that email thru imp. i have changed the html driver settings in
/imp/config/mime_drivers.php :
$mime_drivers['imp']['html']['inline'] = true;
$mime_drivers['imp']['html']['icons'] = array(
'default' => 'html.gif' );
$mime_drivers['imp']['html']['handles'] = array(
'text/html', 'text/richtext' );
and my short php script to send email looks like:
<?
$recipient = "jkpsj at example.com";
$subject = "subject line";
$message = "This is an test<BR><BR>";
$message .= "line 2 This is an test<BR><BR>";
$Headers .= "From: jkpsj at example.com\n";
$Headers .= "X-Sender: <example.com>\n";
$Headers .= "X-Mailer: php4.3\n";
$Headers .= "X-Priority: 1\n";
$Headers .= "Return-Path: <webmaster at examle.com>\n";
$Headers .= "Content-Type: text/html; charset=iso-8859-1\n";
mail($recipient,$subject,$message,$Headers);
print "done";
?>
please advise.
--
jkpsj
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the imp
mailing list