PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Mime » Bug #10158

Inline images not displayed on Mozilla Thunderbird

Details

Submitted2007-02-22 12:51 UTC
Frompedro at malditorodriguez dot org
Assignedcipri
StatusClosed
PackageMail_Mime
PHP Version5.2.0
OSAny
Roadmaps1.4.0, 1.4.0a2

Comments

[2007-02-22 12:51 UTC] pedro at malditorodriguez dot org

Description:
------------
Using the function addHTMLImage, for emmbebed images, the recipient recieves the email but the image isn't showed. Instead, a white square with a X is showed. This only ocurrs for Thunderbird (and I think for evolution too), but not with outlook clients, where is showed correctly.

Test script:
---------------
$file = 'dib.jpg';
$html = '<html><body><img src="' .$file .'"></img></body></html>';
$crlf = "\n";
$hdrs = array('From' => 'me@mydomain.org',
'Subject' => $asunto);
$mime = new Mail_mime($crlf);
$mime->setTXTBody($text);
$mime->addHTMLImage ($file, 'application/octet-stream');
$mime->setHTMLBody($html);
$body = $mime->get();
$hdrs = $mime->headers($hdrs);
$mail =& Mail::factory('mail');
$mail->send($dest, $hdrs, $body);

Expected result:
----------------
A email with a HTML page with an emmbebed image

Actual result:
--------------
A email with a HTML page without images, but attached.

[2007-03-09 11:05 UTC] pedro at malditorodriguez dot org

I have installed the new package version, but I have the
same problem.

[2007-03-19 09:23 UTC] pedro at malditorodriguez dot org

Fantastic, that was the problem. Thank you very much!!!