• 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 the buildMailer() method or getMailerConfig() static method.

    I also see some opportunity to refactor the buildMailer() method by passing the mailer_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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @deltafactory,

    Thank you for your input, we really appreciate it.

    Have you considered using a tool that fakes an SMTP server, instead of sending out emails it logs them to disk?
    E.g. this tool: https://github.com/axllent/fake-smtp
    That way all WP email can be handled this way without ever having to worry about accidentally sending out email to actual customers, and it’s not limited only to MailPoet.
    And I’m sure there are other tools for this purpose as well.

    Best regards,
    MailPoet Team.

    Thread Starter deltafactory

    (@deltafactory)

    I am already using a custom mail logging tool that offers more flexibility that I would like to continue to use.

    The ability to add custom mailing method options could have other uses/benefits beyond my specific use case. Would you consider adding support for that?

    Thread Starter deltafactory

    (@deltafactory)

    The ability to add custom mailing method options could have other uses/benefits beyond my specific use case. Would you consider adding support for that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feature Request: Customize mail module’ is closed to new replies.