[TYPO3-core] RFC #15998: Create a new API based on SwiftMailer to replace t3lib_htmlmail

Ernesto Baschny [cron IT] ernst at cron-it.de
Sun Oct 17 12:27:16 CEST 2010


Am 17.10.2010 12:09, schrieb Martin Kutschker:
> Am 17.10.2010 12:02, schrieb Ernesto Baschny [cron IT]:
>>
>> You compose your message using t3lib_mail_message:
>>
>>      $message = t3lib_div::makeInstance('t3lib_mail_message');
>>      $message->setFrom(array($email =>  $name));
>>      $message->setTo(array($email =>  $name));
>
> I hope "from" and "to" are not mandatory as they have no meaning in a NNTP message.

Yes, of course. Those setFrom / setTo, etc are shortcuts to regular 
"header generating" methods (creating headers of type "Mailbox", 
RFC-conformant, see [1]), which also have some special meaning (adding 
reciepients which will be used by the Mailer).

The Nntp Transport of course would not do anything special with those 
headers.

Cheers,
Ernesto

[1] http://swiftmailer.org/docs/header-mailbox


More information about the TYPO3-team-core mailing list