Installation
Add this line to your application's Gemfile:
gem 'red_alert'
And then execute:
$ bundle
Or install it yourself as:
$ gem install red_alert
Sidekiq Wireup
Sidekiq.configure_server do |c|
c.server_middleware do |chain|
chain.add Sidekiq::Middleware::RedAlert,
to: '[email protected]',
from: '[email protected]',
subject: "BOOM!: %s",
transport_settings: {
address: 'smtp.server.net',
port: '587',
user_name: 'user',
password: 'secret',
domain: 'example.com',
authentication: :plain,
enable_starttls_auto: true
}
end
end
Rack Wireup
use Rack::RedAlert,
to: '[email protected]',
from: '[email protected]',
subject: "BOOM!: %s",
transport_settings: {
address: 'smtp.server.net',
port: '587',
user_name: 'user',
password: 'secret',
domain: 'example.com',
authentication: :plain,
enable_starttls_auto: true
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request