DefaultHeaders plugin is encoding values
coudenysj opened this issue · 3 comments
coudenysj commented
When I use the "long email notation" in the default headers, the headers in the email get encoded.
'default_headers' => array(
'From' => 'Test <info@example.com>',
'Reply-To' => 'Test <info@example.com>',
),
Gives me:
Date: Wed, 24 Sep 2014 09:30:04 +0200
From: =??Q?Test?= <info@example.com>
Reply-To: =??Q?Test?= <info@example.com>
The encoding is done in the Zend\Mail\Header\GenericHeader::toString()
method.
Is there a way to avoid this?
mtymek commented
Is it a problem?
This kind of encoding is valid (according to RFC: https://www.ietf.org/rfc/rfc2047.txt), and from what I checked, e-mail clients don't have problems interpreting it.
coudenysj commented
Outlook is the one to blame. Even the subject is malformed in Outlook.
From: =??Q?Test?= <info@example.com>
Reply-To: =??Q?Test?= <info@example.com>
To: =??Q?Jachim=20Coudenys?= <jachim@example.com>
Subject: =??Q?Subject=20encoding=20failed?=
I'll try to figure out how to fix this.
coudenysj commented
I added the MessageEncoding
plugin without specifying 'message_encoding' => 'UTF-8'
.
I removed the plugin and it is working as expected.