@Jiro: The first call to SENDMAIL is intended to fail and stop execution if SENDMAIL is not configured properly. This is a sanity check so that you find out immediately that SENDMAIL isn't working correctly, rather than four hours later when your script ended after an hour and you have no idea why you were never notified. If you start the script, you will either notice immediately that SENDMAIL returned an error, or you will never get the "Start" notification, and know something is amiss.
Comment only
17 Sep 2010
Notifier
Notify you via email or text message when your functions finish or crash.
Oops, clicked on submit before leaving a comment.
Very nice idea and well-coded (and documented). One suggestion. You put a try-catch around the second and third call to SENDMAIL, but not the first. I suggest making a subfunction for the call to SENDMAIL that includes the try-catch, and call that subfunction in the three locations.
Comment only
17 Sep 2010
Notifier
Notify you via email or text message when your functions finish or crash.
Comment only