Thursday 12 September 2013

Rails ActionMailer : filter emails to a specific list in development

Rails ActionMailer : filter emails to a specific list in development

Without editing any of my /app files, I'd like to edit either
development.rb or an initializer where I set a whitelist of testers.
Then the emails are sent only to those people in the whitelist (not to
spam other users mailbox).
I though of overriding deliver!, or the user.get_mail method but :
it's not in /config where it should be
it doesn't filter gem generated emailing (ie devise, mailboxer etc.)

No comments:

Post a Comment