Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Request #1436 Useing addHTMLImage (latest version)
Submitted: 2004-05-18 22:29 UTC
From: nykodym at email dot cz Assigned: cipri
Status: Bogus Package: Mail_Mime
PHP Version: 4.2.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 46 - 18 = ?

 
 [2004-05-18 22:29 UTC] nykodym at email dot cz
Description: ------------ How I can use addHTMLImage() to send HTML mail with images, but I don't want these images in attachment. I want them only in HTML mail. Thanks... Reproduce code: --------------- <? include('Mail.php'); include('Mail/mime.php'); $html = '<html><body>HTML version of email <img src="top1.jpg"> </body></html>'; $crlf = "\r\n"; $hdrs = array( 'From' => 'you@yourdomain.com', 'Subject' => 'Test mime message' ); $mime = new Mail_mime($crlf); $mime->setHTMLBody($html); $mime->addHTMLImage("_image_files/top1.jpg"); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('mail'); $mail->send('nykodym@email.cz', $hdrs, $body); ?> Expected result: ---------------- The HTML mail is recived to nykodym@email.cz adress. The mail displays image top1.jpg. But in attachement isn't image top1.jpg. Actual result: -------------- The HTML mail is recived to nykodym@email.cz adress. The mail displays image top1.jpg. But in attachement is image top1.jpg.

Comments

 [2005-01-22 23:55 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-02-06 15:23 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-07-21 03:01 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!