send email with attachment on exception

For questions and postings not covered by the other forums
ascribe
Posts: 16
Joined: Mon Sep 14, 2009 1:51 pm
Location: Australia
Contact:

send email with attachment on exception

Postby ascribe » 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.

ascribe
Posts: 16
Joined: Mon Sep 14, 2009 1:51 pm
Location: Australia
Contact:

Re: send email with attachment on exception

Postby ascribe » Mon Jul 08, 2013 12:53 pm

Not to worry, I have sorted it out


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 25 guests

cron