You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For debugging and development purposes, it would be helpful for me to have a mailer which does not send any emails. Instead, it would implement only the logging features of a mailer. The calling code could provide this mailer a logger which logs to the console, or to a file, etc.
I would propose to call this mailer class NoMail, implementing the MailerInterface. Per your spec, it would log emails at info level.
If you concur, I'll submit a pull request. Otherwise, please close. (:
The text was updated successfully, but these errors were encountered:
JASchilz
changed the title
Feature proposal: NoMail or logging only emailer
Feature proposal: logging only mailer
Dec 28, 2017
For debugging and development purposes, it would be helpful for me to have a mailer which does not send any emails. Instead, it would implement only the logging features of a mailer. The calling code could provide this mailer a logger which logs to the console, or to a file, etc.
I would propose to call this mailer class
NoMail
, implementing theMailerInterface
. Per your spec, it would log emails at info level.If you concur, I'll submit a pull request. Otherwise, please close. (:
The text was updated successfully, but these errors were encountered: