Elliott has asked for the wisdom of the Perl Monks concerning the following question:
In the event of failure, I'd like to learn what happened. I don't want the script to stop nor any message sent back to the browser. If it didn't seem stupid, the ideal would be if it emailed me!! I suppose what I have to do is write a log file. But how? The syntax of "warn" doesn't seem to allow for that.
If it's possible, and depending on what the error turns out to be, I'd like the script to retry queuing the failed mail, at least a few times.
Anyone got any advice?
Or maybe know the right question I should be asking the webhost's tech support. After listening to their music for an hour I finally got someone who asked me what the errorlog said - and was utterly scornful when I said I wasn't writing one. I would have thought the webserver would maintain errorlogs from SendMail. Was his contempt for me justified, or was he BSing me?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: SendMail works 99% of the time
by hagus (Monk) on May 19, 2002 at 11:38 UTC | |
by Elliott (Pilgrim) on May 19, 2002 at 19:37 UTC | |
by hagus (Monk) on May 19, 2002 at 22:44 UTC | |
by Elliott (Pilgrim) on May 22, 2002 at 13:49 UTC | |
by Juerd (Abbot) on May 19, 2002 at 19:03 UTC | |
by hagus (Monk) on May 19, 2002 at 22:34 UTC |