[Typo3-dev] mail charset, phpMail
Martin T. Kutschker
Martin.no5pam.Kutschker at blackbox.n0spam.net
Thu Sep 16 10:34:08 CEST 2004
Jan-Erik Revsbech wrote:
>>>-This extension fix charset related problems in TYPO3, substitute
>
> current FE
>
>>>charset for emails. Extends class.ux_t3lib_formmail.php,
>>>class.ux_t3lib_htmlmail.php.
>>
>>AFAIK, the class could be called from the BE as well.
>
> It is indeed used from the backend. Particularly with the direct_mail
> newsletter module. I think a better way would be to make it configurable,
> perhaps via localconf.php.
BE stuff will either be in forceCharset (preferredd) or in the charset
of the current BE language.
IMHO the API needs a way to set the charset. Defaulting is a feature but
doesn't cove situations where one knows the charset (eg because your
code has expclicitely converted some text into the wanted charset).
I suggest doing an "auto-configure" via special mail config (localconf),
then forceCharset, current BE language and if all fails iso-8859-1. Plus
it must be able to set the charset manually.
I wonder if we need some charset conversion logic as well. It simply is
not enough to announce the charset in the mail headers. You must send
the data in this charset :-) It's reasonable to assume, that this is the
case for forceCharset and current BE language. But what about the
special mail config and the API override. In whose responsibility is it
that mail headers and mail data correspond in respect to the charset?
Masi
More information about the TYPO3-dev
mailing list