Intercept recipients when delivering email with the Mail gem.
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Never accidentally send emails to real people from your staging environment.
Send all staging emails to a group email address without accidentally emailing users with active email addresses in the database.
From the command line:
heroku config:add EMAIL_RECIPIENTS="[email protected]" --remote staging
Optionally prefix the subject line:
Mail.register_interceptor( RecipientInterceptor.new( ENV['EMAIL_RECIPIENTS'], subject_prefix: '[STAGING]', ), )
Fork the repo.
Make a change. Run tests. Open a pull request. Discuss/address any feedback with maintainer. Maintainer will merge.