Using new mail API for mailing
Would be nice to have direct_mail using the new mail API:
- t3lib_utility_Mail::mail() (TYPO3 4.4)
- t3lib_mail_message (TYPO3 4.5)
This would everyone give a simple possibility to use SMTP for sending newsletter (including properly authenticated mails etc.)
#2 Updated by Julian Hofmann almost 8 years ago
Here's a little patch to enable using the new mail API at least for sending the mails.
Maybe it is a little bit inconsequent, to just replace calls of mail() by the corresponding API-calls. But for me it is more important to have a simple possibility for using SMTP instead of having a clean and complete replacement of the old mtehods by the new ones.
#3 Updated by Jacob Rasmussen almost 8 years ago
Although there is no doubt that Direct Mail have to support the SwiftMailer API, the patch doesn't work correctly if the mail contains inline media or other attachments.
I did some code research, and we have to refactor quite a bit to get the new API working as it should.
#7 Updated by Julian Hofmann almost 7 years ago
Jacob, you are right: my first patch did not work in some cases. :-(
The new patch does still not cover all options of direct mail (above all inline media or other attachments), but includes a check for such content. Now the Mail-API will only be used if there are embedded binary data.
I know, it is still only a workaround for some newsletters and maybe it is a dirty workaround, but for most of my projects it meets the requirements.
#8 Updated by Ivan Dharma Kartolo over 6 years ago
- Category changed from Feature to swiftmailer
there's a "swiftmailer" branch in the svn, where the swiftmailer instead htmlmail classes are used. inline images, categorization of content, attachment (and what else?) are supported. I need your help on testing before I release it.
Please test and give some feedback