Open michalbundyra opened 4 years ago
2 Years later and still a Problem ...
This is how we fixed that:
Overloading Headers class:
public function addHeaderLine($headerFieldNameOrLine, $fieldValue = null)
{
if ($fieldValue) {
$fieldValue = mb_encode_mimeheader($fieldValue);
return parent::addHeaderLine($headerFieldNameOrLine, $fieldValue);
}
return parent::addHeaderLine(mb_encode_mimeheader($headerFieldNameOrLine));
}
Originally posted by @CyberLine at https://github.com/zendframework/zend-mail/issues/91#issuecomment-433937117
Please provide a failing test case, and then the fix will likely be trivial.
Originally posted by @Ocramius at https://github.com/zendframework/zend-mail/issues/91#issuecomment-433937462
I have described the problem in an article - here's is part of it exactly about the bug in the method:
Here is also a code - overloaded method - that fixes that:
Full information on an error including the solution itself can be found in the following article: http://www.linkedphpers.org/2016/04/zend-framework-2-zendmailmessagefromstr.html
Originally posted by @Voyteck at https://github.com/zendframework/zend-mail/issues/91