[TYPO3-core] RFC #17336: Swift Mailer Adapter does not parse To: addresses

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Jan 26 13:46:30 CET 2011


Jigal van Hemert schrieb am 26.01.2011 13:35:

> This is a SVN patch request.
> 
> Type: Bugfix
> 
> BT reference: http://bugs.typo3.org/view.php?id=17336
> 
> Branches: trunk
> 
> Problem:
> If t3lib_utility_Mail is called with a recipient in the $to parameter
> which is not a plain simple mail address but has a name included (e.g.
> "my name" <me at example.org> ) it will throw an exception inside Swift Mailer
> 
> Solution:
> process $to with parseAddresses before setting the To: value
> 
> How to test:
> Send mails with Direct Mail, which uses
> "The name" <name at example.org>
> format for the recipient.

Puh, I'm glad we have this RFC 2822 parser in place! Well spotted, never
thought it was possible to have other strings than emails in the $to
parameter to mail()!

+1 by reading and testing.

Actually a no-brainer, so you can commit right away, if you have the
time, Jigal.

Cheers,
Ernesto



More information about the TYPO3-team-core mailing list