Hi Sergio,

I highly recommend using a more sophisticated solution such as Sentry (��https://github.com/peteruhnak/pharo-sentry ,��https://peteruhnak.github.io/pharo-sentry/ ).

If you want something really simple, then ShoreLine can be of assistance (assuming you use Pharo 6; it was removed in P7)
You can enable automatic reporting in settings, and if you want to send email instead of a API request, then look at (and change) SlReporter>>send:

But I have to strongly discourage you from using simple stack traces in mail... it is a nightmare to manage; especially if you have multiple servers/versions/errors occur in a loop, etc.
(I've tried using SL for about 2 months, and I've failed miserably. That's why I wrote pharo-sentry).

Peter

On Fri, May 18, 2018 at 5:51 PM, sergio ruiz <sergio.rrd@gmail.com> wrote:
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