[TYPO3-english] eMail Subject Encoding Problem
kinggencha at googlemail.com
Fri Aug 19 22:39:48 CEST 2011
I hope I picked the right list for this issue.
I'm fairly new to Typo3 so please bare with me.
I started using the extension sp_bettercontact for a contact form on a
site I'm currently working on. I noticed that the mails that were sent
out had strangely encoded subject lines, like so:
Which is obviously quoted-printable encoding (the rest of the message
is just fine by the way).
So I inspected the "source" of such an email and it shows this subject:
So, it looks like the subject is encoded multiple times (and,
obviously, only decoded once).
This sent me on a wild hunt through the source of both the extension
and the mail framework of Typo3 and I soon realized I could fix me
problem by setting dontEncodeHeader on the t3lib_htmlmail instance to
Doing so will produce the following code in the mail:
=?utf-8?Q?Oliver?= Salzburg hat eine Nachricht =?utf-8?Q?versandt=0D?=
Which still looks a bit weird to me but is decoded correctly in all
clients that I've tried (Outlook and Thunderbird).
What is actually going wrong here? Do I need to adjust that extension
by setting dontEncodeHeader? I would assume the author would have
realized it if that setting was required.
Any advice would be greatly appreciated.
p.s.: I mailed the author of the extension several hours ago, but he,
sadly, didn't reply yet.
More information about the TYPO3-english