ZF2-581: Cannot send Mime Version Email from File

Issue Type: Bug Created: 2012-09-22T15:06:48.000+0000 Last Updated: 2012-10-08T20:11:04.000+0000 Status: Closed Fix version(s): Reporter: Sammie S. Taunton (diemuzi) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Mail

Related issues: Attachments:


This actually has more to do with Zend\Mail\Storage\Message

Here are the email headers giving the problems (I truncated them, since it contains an image) -> This email was created using this example ->…

So the email is stored in a file and later I open it with $message = new Zend\Mail\Storage\Message(array('file' => $filename)); When you attempt to send the email using Zend\Mail\Message you are given this error:

Caught Exception Zend\Mail\Exception\RuntimeException does not match header format! This is a message in Mime Format. If you see this, your mail reader does not support this format.

After trying several things out I decided to open the email saved to file and remove the line regarding it being in Mime Format. To my surprise, the email was instantly sent without a problem. Looking at the email in my inbox, I see the Mime Format line was automagically added back and everything worked as expected.

This does not happen when the email is not in Mime Format, it works perfectly and as expected.


Posted by Ralph Schindler (ralph) on 2012-10-08T20:11:04.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2022 by Zend by Perforce. Made with by awesome contributors.

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