Site::CrashNotify - Send email dumping environment, error, and page args when an error occurs (internal server error)
use Site::CrashNotify ( to => 'you@yourhost.com', subject => 'It broke!' );
Just 'use' the module and pass at least a 'to' argument in the use list, and a SIGDIE handler will be put in place to send you a notification when something goes wrong. An easy way to test and get a sample message would be like this:
use Site::CrashNotify ( to => 'you@yourhost.com' );
print 'fooo' print 'jub'
The line terminators are intentionally missing. The script will crash and you should get an email summary at 'you@yourhost.com'.
There is also 1 support function, dump(). You can call it like this:
Site::CrashNotify -> dump( TO, FROM, SUBJECT, BODY );
The TO and FROM are the addresses for the email, the SUBJECT is the email subject, and BODY is put at the beginning of the message before the dump.
Copyright (c) 2001 Steve Slaven <bpk@hoopajoo.net> All rights reserved.
This program is free software and is provided ``as is'' without express or implied warranty. You can redistribute it and/or modify it under the same terms as Perl itself.
perl(1).