ZF-5618: Plain Text Alternative gets broken if setType->Zend_Mime::MULTIPART_RELATED

Issue Type: Bug Created: 2009-01-23T00:53:13.000+0000 Last Updated: 2012-11-20T21:37:34.000+0000 Status: Open Fix version(s): Reporter: Marco Frank (melchior) Assignee: None Tags: - Zend_Mail

  • Zend_Mime

Related issues: Attachments: - Picture 27.png


I've noticed that after switching the type of a mail object to


the received mail does not longer consists the plain text alternative.

I've tested it with Apple Mail. After switching to MULTIPART_ALTERNATIVE or default, the alternative plain text version works again like a charm.

I think the problem relies to the order of MIME items in the raw mail.

Here's the beginning of a MULTIPART_RELATED mail {quote} Return-Path: X-Original-To: Delivered-To: Received: from localhost (localhost []) (Authenticated sender: xxxx.org_mail) by (Postfix) with ESMTP id 0A5AE4008D for; Thu, 22 Jan 2009 08:27:29 +0100 (CET) From: xxxxx P Subject: xxxx: ONE WISH MELDUNG To: xxx xx xxxx Date: Thu, 22 Jan 2009 08:27:29 +0100 Content-Type: multipart/related; charset="utf-8"; boundary="=_9b6951eb0bf5eea2d972690bf5245625" MIME-Version: 1.0 Message-Id:

This is a message in Mime Format. If you see this, your mail reader does not support this format.

--=_9b6951eb0bf5eea2d972690bf5245625 Content-Type: multipart/alternative; boundary="=_5fec644199e2305f05c0961ba50539f9" Content-Transfer-Encoding: 8bit

--=_5fec644199e2305f05c0961ba50539f9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

xxxxx {quote}

how you can easily see the Content-Type: text/plain still exists, but before stands Content-Type: multipart/alternative which maybe brokes the text/plain section?

I'm no pro with MIME and co, but I'm thinking it's a bug. I stripped my code down and removed attachments and co so that I've got only text html and text plain only. Again, the plain version gets broken by using RELATED.

if more informations are needed I'll post them


Posted by Marco Frank (melchior) on 2009-01-23T00:56:13.000+0000

screenshot from Apple Mail.

Adding screenshot by ISSUE tracker (clipboard) didn't work

Posted by Marco Frank (melchior) on 2009-04-09T02:42:25.000+0000

hi nico,

no reply yet?

did you read already this issue??

thx and regards, Marco Frank (maintainer

Posted by Satoru Yoshida (satoruyoshida) on 2009-10-06T21:46:13.000+0000

I have no evidence yet, but this issue may be related to ZF-7874 .

Posted by Satoru Yoshida (satoruyoshida) on 2009-10-31T06:16:48.000+0000

I found this issue is not related to ZF-7874. So, I removed link.

Posted by Satoru Yoshida (satoruyoshida) on 2010-06-09T00:21:10.000+0000

Sorry, I have been inactive since last April.

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-12-06T02:20:40.000+0000

Can you please provide the code to reproduce, the current output, and the expected output? Thanks.

Have you found an issue?

See the Overview section for more details.


© 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.