NotifyR
NotifyR is a nice gem to send exception notifications
Installation
Add this line to your application's Gemfile:
gem 'notifyR'
And then execute:
$ bundle
Or install it yourself as:
$ gem install notifyR
Usage
## Assuming smtp settings have already been setup in your application
NotifyR.notify_exception_to_developers(from_address, to_address, subject(optional), exception(optional), server_name(optional)).deliver
## example
NotifyR.notify_exception_to_developers("[email protected]", "[email protected], [email protected]", "Error in User model", exception, "Production Server").deliver
## here exception in an object of Exception class
Contributing
- Fork it ( https://github.com/ashokgadikoppula/notifyR/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request