Sending emails programmatically
Posted: Tue Aug 24, 2021 2:50 pm
I have a module which used the CMSMailer module to send emails when it wasn't built-in to the cms. I'd like to upgrade my module to use the built-in mailer functionality rather than needing to load a deprecated module.
As it's still just a wrapper around phpmailer, I am thinking that it's probably just a question of initialising differently and then I can reuse most of the existing code?
I have had a search around and can't see any example code or notes on this, can anyone point me in the right direction or at a module which has updated in this way?
Thanks,
Mark.
As it's still just a wrapper around phpmailer, I am thinking that it's probably just a question of initialising differently and then I can reuse most of the existing code?
I have had a search around and can't see any example code or notes on this, can anyone point me in the right direction or at a module which has updated in this way?
Thanks,
Mark.