Trying to use Mail_Mime::addHTMLImage() to make an html background in <body>

From: Date: Sat, 11 Sep 2004 04:53:23 +0000
Subject: Trying to use Mail_Mime::addHTMLImage() to make an html background in <body>
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14487@lists.php.net to get a copy of this message
Does anyone know how to do this? My file gets attached to the mail but I don't know how to get it to show up in the mail. Have a look: <snip> $mime = new Mail_mime($crlf); // background pic $mime->addHTMLImage("art/bodyBG.gif",'image/gif'); $text = "$mylog"; $html = "<HTML><BODY bgimage=\"art/bodyBG.gif\"><H1>"; $html .= nl2br($mylog); $html .= "</H1></BODY></HTML>"; $mime->setTXTBody($text); $mime->setHTMLBody($html); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('mail'); $mail->send($s_email, $hdrs, $body); </snip> The bgimage param doesn't work. Can someone slap me with a clue? Joel

« previous php.pear.general (#14487) next »