clojurewerkz / mailer

An ActionMailer-inspired mailer library. Combines Postal, Clostache, some conventions and support for multiple delivery modes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

safe mail mode

pupeno opened this issue · comments

I think it would be nice if clojurewerkz mailer implemented a safe mail mode in which a white listed set of email addresses are sent emails too and the rest are re-written so that a different email address receives those emails.

This is useful for development and staging environments where you want to deliver emails but you don't want to accidentally deliver a real user. There are some libraries that do that in other programming languages already, like: https://github.com/myronmarston/mail_safe

I think if this feature is implemented directly into mailer it'll be much cleaner and safer than a wrapper.

I can give it a go at building this if it's something you are likely to accept.

Sounds good. Please put together some code examples of what it would look like before putting more time into it. Thank you!