Issues

ZF-1795: Corrupted Attachments

Issue Type: Bug Created: 2007-08-01T03:13:54.000+0000 Last Updated: 2008-11-13T14:10:15.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Florian Hoenig (flo) Assignee: Thomas Weidner (thomas) Tags: - Zend_Mail

Related issues: Attachments:

Description

I am having troubled with attachments when sending to AT&T (Cingular) MM3 Email-to-MMS gateway via SMTP. Unfortunately the gateway's software is a black box to me, but the result that it "removed corrupted mime part image/jpeg".

$mail->createAttachment($data['image'], 'image/jpeg', Zend_Mime::DISPOSITION_INLINE, Zend_Mime::ENCODING_BASE64, $message->id."-img.jpg");

$data['image'] is the result of imagejpeg().

All this works really well with PEAR::Mail. I have played around with changing line end characters and changing the line length, but it does not solve anything.

Mail.app on Mac and Outlook on Windows can read the attachments, but when I save it from Exchange Webmail, it seems a little corrupted too (maybe because that front-end is not that smart to correct errors.)

Something seems fishy in Zend_Mime or Zend_Mail_Smtp and I cannot figure it out.

Comments

Posted by Darby Felton (darby) on 2007-08-01T12:16:09.000+0000

Assigning to [~matthew] to initiate issue review.

Posted by Matthew Weier O'Phinney (matthew) on 2007-11-16T15:06:45.000+0000

Assigning to Nico

Posted by C. Suermann (suermann) on 2007-12-04T08:10:49.000+0000

The problem seems to occur not always but rather sporadically. Unfortunately I cannot say under which circumstances the attachment gets corrupted. When I run the very same code several times, most of the times everything works as expected, but sometimes the attachment is broken. Hope this helps.

Posted by Thomas Weidner (thomas) on 2008-11-06T13:03:45.000+0000

Fixed with r12343. Changed linelength to 72 to be compatible with other mailers.

Seems to be related to ZF-4360 and ZF-4169. Feel free to reopen if it is not fixed for your environment.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:15.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts