Actions
Bug #60437
closedSenders name with special chars does not work in default form
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-07-21
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
Special chars like Umlaute ÄÖÜ in the senders name of a form are not displayed correctly in all mail clients. And the default hostname is always added, if special chars are used.
From line in test email:
From: "Test =?utf-8?Q?=C3=84=C3=96=C3=9C_=C3=9F_=C3=A4=C3=B6=C3=BC=22?= <Test123@example.org>"@hostname.hoster.org
Shows in Thunderbird like:
"Test ÄÖÜ ß äöü" "@hostname.hoster.org
Test ÄÖÜ ß äöü <Test123@example.org>@hostname.hoster.org
To work it should be:
From: Test =?utf-8?Q?=C3=84=C3=96=C3=9C_=C3=9F_=C3=A4=C3=B6=C3=BC?= <Test123@example.org>
Shows in Thunderbird like:
Test ÄÖÜ ß äöü
Test ÄÖÜ ß äöü <Test123@example.org>
The problem is the quotation in
typo3_src-6.2.1/typo3/sysext/form/Classes/PostProcess/MailPostProcessor.php
Lines 141 - 143:
if (preg_match('/\\s|,/', $fromName) >= 1) { $fromName = '"' . $fromName . '"'; }
Blank chars in the senders name should be handled by Swift Mailer.
I think this lines can be removed.
Files
Actions