# Email on error

**URL:** <https://www.ruby-forum.com/t/email-on-error/191544>\
**Category:** Rails\
**Created:** [July 14, 2010, 9:03am UTC](https://www.ruby-forum.com/t/email-on-error/191544 "2010-07-14T09:03:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemantborole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b782af/32.png) [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Post date:** [July 14, 2010, 9:03am UTC](https://www.ruby-forum.com/t/email-on-error/191544/1 "2010-07-14T09:03:33Z")

</div>

Hello All,

Is there any built in method/gem which can send an email when any kind  
of error comes in your application?

---

<div class="post-metadata">

**Author:** ![hemantborole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b782af/32.png) [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Post date:** [July 14, 2010, 9:35am UTC](https://www.ruby-forum.com/t/email-on-error/191544/2 "2010-07-14T09:35:52Z")

</div>

> Is there any built in method/gem which can send an email when any kind  
> of error comes in your application?

There are. I’d suggest looking into hoptoadapp or exception notifier or  
one of the other services that provide hooks for this sort of thing.

Much more convenient than getting an email per error…

-philip

---

<div class="post-metadata">

**Author:** ![hemantborole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b782af/32.png) [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Post date:** [July 14, 2010, 2:38pm UTC](https://www.ruby-forum.com/t/email-on-error/191544/3 "2010-07-14T14:38:46Z")

</div>

Philip H. wrote:

> > Is there any built in method/gem which can send an email when any kind  
> > of error comes in your application?
> 
> There are. I’d suggest looking into hoptoadapp or exception notifier or  
> one of the other services that provide hooks for this sort of thing.
> 
> Much more convenient than getting an email per error…

Hello,

Thanks for your quick reply. After some R&D, i find a gem called  
exception  
notification([GitHub - rails/exception\_notification at 2-3-stable](http://github.com/rails/exception_notification/tree/2-3-stable))  
which do the same work as i wanted. So i have installed this gem and  
configured it according to what is written on their page. I mean  
included in application controller and specified the default recepients  
as well in environments.rb.

But when i run the server, this is giving me error as,

/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:105:in  
`const\_missing’: uninitialized constant  
Rails::Initializer::ExceptionNotification (NameError)

Any idea guys why it is happening… ?

> -philip
