Send email when a error happens

I have a script in ruby that build a software for me once per day and
when the code is wrong and a error, I don’t if the error has ocurred and
I don’t know what happened.

I wanna know how I can saw the error, I want that this script tell me
what happenend by email.

Thanks,

Ivan

Ivan V. wrote:

I have a script in ruby that build a software for me once per day and
when the code is wrong and a error, I don’t if the error has ocurred and
I don’t know what happened.

I wanna know how I can saw the error, I want that this script tell me
what happenend by email.

Thanks,

Ivan

You can do that, if this is the question, but IF the question “do it for
me?” then this would be hard to answer :slight_smile:

Maybe like at some Mail extension for ruby if it not implemented in your
library already.

Ivan V. wrote:

I have a script in ruby that build a software for me once per day and
when the code is wrong and a error, I don’t if the error has ocurred and
I don’t know what happened.

I wanna know how I can saw the error, I want that this script tell me
what happenend by email.

Thanks,

Ivan

theres a plugin out there that will do this for you

Hi Ivan, this may be what you’re looking for:

http://wiki.rubyonrails.com/rails/pages/ExceptionNotification

Good luck,

-Conrad

Hi Ivan,

2007/3/29, Ivan V. [email protected]:

I wanna know how I can saw the error, I want that this script tell me
what happenend by email.

There’ s a recipe in the ruby cookbook in chapter 15.20 about this.

HTH,
Beate