Hi Frank,
I just released a package doing what you are working on : AutoMsg : https://github.com/conseilgouz/pkg_automsg_j4
It's a component because it's a bit more complex : like your plugin, it sends email onContentAfterSave or onContentChangeState, and :
- it allows asynchronous mailings (send multiple articles once a day/a week/...),
- it handles partial mailing : if your hoster limits the number of mails you can send in one hour for example, mailing process stops and a scheduled task sends the remaining mails in one or more runs.
It uses scheduled tasks, email templates.
In user profile, a field has been added to allow/disallow receiving those emails.
Hope this helps,
Pascal
I just released a package doing what you are working on : AutoMsg : https://github.com/conseilgouz/pkg_automsg_j4
It's a component because it's a bit more complex : like your plugin, it sends email onContentAfterSave or onContentChangeState, and :
- it allows asynchronous mailings (send multiple articles once a day/a week/...),
- it handles partial mailing : if your hoster limits the number of mails you can send in one hour for example, mailing process stops and a scheduled task sends the remaining mails in one or more runs.
It uses scheduled tasks, email templates.
In user profile, a field has been added to allow/disallow receiving those emails.
Hope this helps,
Pascal
Statistics: Posted by pmleconte — Mon Jun 10, 2024 1:59 pm