[TYPO3-core] RFC #16879: bug: Mail created with FORM content element and swift mailer shows empty body in thunderbird

Jigal van Hemert jigal at xs4all.nl
Fri Dec 31 14:07:02 CET 2010


Hi,

This is a SVN patch request.

Type: Bugfix

BT reference: http://bugs.typo3.org/view.php?id=16879

Branches: trunk

Problem:
To make the new Swift Mailer features available to the entire core a 
hook subscriber was made to route messages sent with t3lib_utility_Mail 
to the new Swift Mailer.
Two problems were found when sending HTML mails:
- the trailing semicolon of the Content-Type header was not removed, 
resulting in double semicolons
- multi-part email messages were not split in separate parts. Instead 
the entire body was used and Swift Mailer considered that to be a single 
body part which needed encoding.

Solution:
- trim trailing semicolon of Content-Type headers
- parse the message body, decode each part and add it to the new message 
object

How to test:
Create a form element:

Name: | *name = input,40 | Enter your name here
Email: | *email=input,40 |
Address: | address=textarea,40,5 |
Contact me: | tv=check | 1

|formtype_mail = submit | Send form!
|html_enabled=hidden | 1
|subject=hidden| This is the subject

In mail readers such as Thunderbird (which likes to follow standards) no 
content at all is displayed. With the patch a correct message is 
constructed and displayed as intended.

Notes:
Tested with Thunderbird 3.1.7 and Gmail

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16879.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101231/09a5e1f2/attachment.asc>


More information about the TYPO3-team-core mailing list