ZF2-258: Setting encoding to utf8 while using the sendmail transport causes spaces to be removed from subject

Issue Type: Bug Created: 2012-04-10T11:19:06.000+0000 Last Updated: 2012-06-14T14:29:37.000+0000 Status: Resolved Fix version(s): Reporter: Bas K (bas) Assignee: Maks 3w (maks3w) Tags: - Zend\Mail

  • sendmail
  • utf8

Related issues: Attachments:


When setting the encoding on a message to utf8 causes spaces to be removed (possibly additional other side effects are present)

$message = new \Zend\Mail\Message(); $message->setEncoding("UTF-8"); $message->setSubject("Some text with spaces"); $transport = new \Zend\Mail\Transport\Sendmail(); $transport->send($message);

Resulting Header Subject: Sometextwithspaces

Expected Header Subject: Some text with spaces


Posted by Bas K (bas) on 2012-04-11T08:24:04.000+0000

I should add thatI am running OSX10.7.3 with a macport install of PHP5.3.10

Posted by Maks 3w (maks3w) on 2012-06-14T14:29:37.000+0000

Fixed with

Have you found an issue?

See the Overview section for more details.


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

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