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

Bug #18764 Inline images in gmail appear attached
Submitted: 2011-08-29 03:17 UTC
From: filipenoise Assigned:
Status: Bogus Package: Mail_Mime (version 1.8.2)
PHP Version: 5.2.12 OS: Linux
Roadmaps: 1.8.3    
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 : 26 + 24 = ?

 
 [2011-08-29 03:17 UTC] filipenoise (Filipe Noise)
Description: ------------ On emails like gmail when i sent inline images, the images appear as attachment, i need to click show images. example: http://filipenunes.com/mail2/ex.txt Test script: --------------- example: http://filipenunes.com/mail2/ex.txt Expected result: ---------------- inline images without click on show images on gmail. Actual result: -------------- attachment images!

Comments

 [2011-09-28 23:41 UTC] alec (Aleksander Machniak)
Please, attach source of the message.
 [2011-09-29 14:48 UTC] filipenoise (Filipe Noise)
the source: <?php require 'Mail.php'; require 'Mail/mime.php'; $to = 'to@email.com'; $additional_headers = array( 'Subject' => 'Email subject', 'From' => 'from@email.com' ); $dir = dirname(__FILE__).'/'; $crlf = "\r\n"; $mime = new Mail_mime($crlf); $mime->setTxtBody("This is the plain text version."); $mime->setHTMLBody('<html><body><img src="'.$dir.'pearsmall.gif"> <p>You dont see this image.</p></body></html>'); $mime->addHTMLImage($dir.'pearsmall.gif', 'image/gif'); $body = $mime->get(); $headers = $mime->headers($additional_headers); $mailer =& Mail::factory('mail'); $res = $mailer->send($to, $headers, $body); if (PEAR::isError($res)) { echo 'Couldn\'t send message: '.$res->getMessage(); }else{ echo 'message sent'; } ?>
 [2011-09-29 15:16 UTC] alec (Aleksander Machniak)
The source of the generated and sent message, not the script.
 [2011-09-29 15:44 UTC] filipenoise (Filipe Noise)
Content-Type: multipart/related; boundary="=_cd93eb488054da13ff52e6d26c6d95fb" Message-Id: <E1R9D7s-004FtZ-Do@server414.webhostingpad.com> Date: Thu, 29 Sep 2011 04:41:56 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server414.webhostingpad.com X-AntiAbuse: Original Domain - gmail.com X-AntiAbuse: Originator/Caller UID/GID - [795 790] / [47 12] X-AntiAbuse: Sender Address Domain - server414.webhostingpad.com --=_cd93eb488054da13ff52e6d26c6d95fb Content-Type: multipart/alternative; boundary="=_381f10caaeac878d809d761d10364da5" --=_381f10caaeac878d809d761d10364da5 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" This is the plain text version. --=_381f10caaeac878d809d761d10364da5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="ISO-8859-1" <html><body><img src=3D"cid:bf3f3d9457b2a53f4096544f6fdbb7a8"> <p>You dont = see this image.</p></body></html> --=_381f10caaeac878d809d761d10364da5-- --=_cd93eb488054da13ff52e6d26c6d95fb Content-Transfer-Encoding: base64 Content-ID: <bf3f3d9457b2a53f4096544f6fdbb7a8> Content-Type: image/gif; name="pearsmall.gif"; Content-Disposition: inline; filename="pearsmall.gif"; R0lGODlhaAAyAMT/AMDAwP3+/TWaAvD47Pj89vz++zebBDmcBj6fDEekFluvKmu3PvX 68ujz4XvB S8LgrNXqxeHw1ZnPaa/dgvv9+cLqj8LmltD2msnuls3xmszwmf7+/f///wAAAAAAAAAAA CH5BAEA AAAALAAAAABoADIAQAX/ICCOZGmeaKqubOtWWjwJphLLgH1XUu//C1Jisfj9YLEKQnSY 3GaixWQq QTkYHM4AMulNLJFC9pEwIW/odKU8cqTfsWoTTtcomU4ZjbR4ZP+AgYKCG0EiZ1AuiossE hwEXRME g5SVWQ6MmZqKWD0QlqCUEHubpaYlExwRPRZioZZVp7KzKQoSDxANDLsNXA5simd2Fc QYb4YAc2jE U80TmAAIztPCMcjKdg4OEsZJmwIWWQPQI4ikIwtoVQnddgrv8PFlCWgYCwkI+fp5dkvJ/ IlUKMCy 6tYrDhNIIKLFEAWCTxse+ABD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leksander Machniak)
-Status: Open +Status: Bogus
Works for me with Thunderbird and Roundcube. The message source looks ok. So, I don't know what expects gmail, but it's not our issue.