Is there  a way to send an email on an error or exception?

I have an app that runs live on a remote server, and I am finding that every now and then, the server will lock up, and I won���t know what���s going on with it.

Currently, i pull the image and run it local, but an email with a stack trace would be SUPER helpful.

Thanks!



----
peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101