Feature Request: Customize mail module
-
As a developer, I would like the ability to create custom mail modules. As an immediate need, I need the ability to test MailPoet on a development site without the risk of test emails reaching the client. The best way for me to do that is with a “dummy” module that logs message contents to a database.
I do not expect MailPoet to develop this dummy module, only to provide the mechanism through which I could extend the sending framework.
The entry point would be under
MailPoet\Mailer\Mailer
under thebuildMailer()
method orgetMailerConfig()
static method.I also see some opportunity to refactor the
buildMailer()
method by passing themailer_config
values as a single argument to the mailer class’ constructor instead of the switch block feeding different parameters depending on the mailer method.I would be happy to submit pull requests to this effect via GitHub.
- The topic ‘Feature Request: Customize mail module’ is closed to new replies.