CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #11084

Email Notification : charset invalid in subject

Added by Jean-Baptiste over 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2010-11-26
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:Forum
Target version:1.9.3
Votes: 0

Description

Hello,

I have a problem with no ASCII character (French) in email subject

Example :
--------------------------
To: _@_.org
Subject: Il y a un nouveau sujet nomm├® 'TEST 5' dans la cat├®gorie 'Probl├¿mes rencontr├®s' de Forum DSIT
X-PHP-Originating-Script: 500:class.tx_mmforum_havealook.php

I have identified the problem :
-------------------------
Subject must satisfy » RFC 2047.
http://www.php.net/manual/en/function.mail.php
bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
-----------------------

Patch
-----------------------
pi1/class.tx_mmforum_havealook.php (line 570)

/* add */   $subject = mb_encode_mimeheader($subject,"UTF-8", "B", "\n");
mail($toEmail, $subject, $mailtext, implode("\n", $mailHeaders));

Associated revisions

Revision 50692
Added by Hauke Hain almost 2 years ago

[#BUG] Implemented Swift Mailer API for forum / topic notification (fixes #26416 , fixes #11084 , fixes #27741)
[~TWEAK] Added "Yours" to notification mails
[~TWEAK] Added missing informal forum notification text for German translation

Revision 52edb88c
Added by Hauke Hain almost 2 years ago

[#BUG] Implemented Swift Mailer API for forum / topic notification (fixes #26416 , fixes #11084 , fixes #27741)
[~TWEAK] Added "Yours" to notification mails
[~TWEAK] Added missing informal forum notification text for German translation

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/mm_forum/trunk@50692 735d13b6-9817-0410-8766-e36946ffe9aa

History

Updated by Martin Helmich over 2 years ago

  • Status changed from New to Accepted
  • Target version set to 1.9.3

Hi Jean-Baptiste,

generally, I agree with you. However, instead of re-inventing the wheel, we should just use the internal mail-API, which should also fix the problem and save us a lot of trouble... ;)

Best regards,
Martin

Updated by Hauke Hain almost 2 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r50692.

Also available in: Atom PDF