Issue Bug Closed

#34526Mail sending fails with quoted&encoded e-mail addresses

Dmitry Dulepov 03/05/12, 11:18 updated 10/23/17, 22:20

Description

Trying to send e-mail from addresses like `“Cālis.lv” <none>` fails with “Validation failed for …” message. The problem is that t3lib_div::encodeHeader places encoding markers before quoues and produces the following:</none>

=?utf-8?Q?“C=C4=81lis.lv”?= <none></none>

The correct would be:

“=?utf-8?Q?C=C4=81lis.lv?=” <none></none>

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.

Reviews 4