Actions
Bug #34526
closedMail sending fails with quoted&encoded e-mail addresses
Start date:
2012-03-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Trying to send e-mail from addresses like `"Cālis.lv" <none@calis.lv>` fails with "Validation failed for ..." message. The problem is that t3lib_div::encodeHeader places encoding markers before quoues and produces the following:
=?utf-8?Q?"C=C4=81lis.lv"?= <none@calis.lv>
The correct would be:
"=?utf-8?Q?C=C4=81lis.lv?=" <none@calis.lv>
Later t3lib_mail_Rfc822AddressesParser does not see this as a quoted string and fails with an exception.
The solution is to fix the t3lib_div::encodeHeader to move quotes outside of the quoted value.
Actions