SesBlacklistRails
Installation
Add this line to your application's Gemfile
:
gem 'ses_blacklist_rails'
And then execute:
$ bundle
$ bundle exec rails g ses_blacklist_rails:install
Configuration
in config/initializers/ses_blacklist_rails.rb
SesBlacklistRails.configure do |config|
config.send_bounce = false
config.send_complaint = false
# send the mail to config.default_address when the TO: address is bounce or complaint before.
# set to '' to stop the mail sending when bounce or complaint.
config.default_address = 'some_address@sample.com'
end
ActionMailer::Base.register_interceptor(::SesBlacklistRails::ActionMailInterceptor)
Contributing
Please let me know if you found any problems, by creating ISSUE reports or PRs.
License
The gem is available as open source under the terms of the MIT License.