Allow for easier control over Mailer
My specific use case:
I only want mail to actually be sent when run.mode is production or staging. Otherwise I want to do nothing (maybe log something).
I can imagine a wide array of things that someone might want to do though, especially in unit tests. Perhaps it would be best to allow easy override of the sendMail function?
I only want mail to actually be sent when run.mode is production or staging. Otherwise I want to do nothing (maybe log something).
I can imagine a wide array of things that someone might want to do though, especially in unit tests. Perhaps it would be best to allow easy override of the sendMail function?
Leave a comment
(In revision:ca88d9e5f5de138bd76c3473e042ff96207f2947) Closes #484. Lots and lots of control over how the Mailer object sends messages
Branch: master
Branch: master