Issue Bug Closed

#60437Senders name with special chars does not work in default form

Ayke Halder 07/21/14, 16:25 updated 10/02/18, 11:52

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.

Reviews 2