send email with attachment on exception
Posted: Fri Jul 05, 2013 2:07 pm
Hi all,
I am having a problem and it seems I am heading to a dead end. I hope someone can help me out.
I need to make our system to send out an email with attachment of the stackdump file when it intercepts and exception.
I have created my own exception handler for sending email but I cannot get thestackdump file because if I arm it before calling CardSchema::cnActivateKarmaControl my exception handler is suppressed because exceptions are set to be handled by CardSchema, and if I arm it after calling CardSchema::cnActivateKarmaControl my exception handler is raised before the stackdump file is being created therefore the file is not available for emailing.
The only way I can make it work is to arm my exception handler before calling CardSchema::cnActivateKarmaControl and set ExceptionHandler=Jade in ini file but it is also mean showing the debug screen to the users.
I believe there is a better way of doing it, can anyone help please.
I am having a problem and it seems I am heading to a dead end. I hope someone can help me out.
I need to make our system to send out an email with attachment of the stackdump file when it intercepts and exception.
I have created my own exception handler for sending email but I cannot get thestackdump file because if I arm it before calling CardSchema::cnActivateKarmaControl my exception handler is suppressed because exceptions are set to be handled by CardSchema, and if I arm it after calling CardSchema::cnActivateKarmaControl my exception handler is raised before the stackdump file is being created therefore the file is not available for emailing.
The only way I can make it work is to arm my exception handler before calling CardSchema::cnActivateKarmaControl and set ExceptionHandler=Jade in ini file but it is also mean showing the debug screen to the users.
I believe there is a better way of doing it, can anyone help please.