Open Voyteck opened 8 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));
}
Please provide a failing test case, and then the fix will likely be trivial.
This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at https://github.com/laminas/laminas-mail/issues/61.
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