Page 1 of 1

[SOLVED] Mail Error Line when Error triggers

Posted: Thu Aug 04, 2005 1:17 pm
by anjanesh
Hi

I've used log_errors to log all errors to a file and display_errors Off to not to display them.

Is there any way a mail can be sent when a error gets triggered ?
What I want is two-fold - write error to error log file and mail the same line.

Thanks

Posted: Thu Aug 04, 2005 4:59 pm
by feyd

Posted: Thu Aug 04, 2005 5:41 pm
by Ambush Commander
I've actually done some reading about this. It's generally not recommended because when errors do happen, they tend to happen in spurts, so you'll end up getting lots of emails before you're able to turn of the handle. Make sure you apply some intelligent limiting before you do this.

Posted: Thu Aug 04, 2005 6:00 pm
by feyd
the errors can be pooled and using a shutdown function, can then send any errors in one email.

Posted: Thu Aug 04, 2005 6:02 pm
by Ambush Commander
My point exactly. :)

Posted: Thu Aug 04, 2005 10:56 pm
by anjanesh
Once again - thanks Feyd !