Upload to Mantis and send Mail

delphi package - automated exception handling
Post Reply
Klaus.Meier
Posts: 1
Joined: Mon Jul 18, 2016 4:30 pm

Upload to Mantis and send Mail

Post by Klaus.Meier »

Hello,
we use madExcept 4.0.15.
We would like to send a Mail AND enter an issue in Mantis.
We just can enter an issue or can send an Mail, but not both.
A look into the sources proofes this expirience.
So the question is, anybody has an idea how to achieve this?

Greetings
Klaus
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Upload to Mantis and send Mail

Post by madshi »

Hi Klaus,

and sorry for the lack of reply. Somehow I missed your thread (forum notification not working?).

Anyway. You're right, by default you can only do either this or that, but not both. However, it shouldn't be too hard to do whatever you want, by writing some custom code. My suggestion would be this:

1) Setup everything for Mantis reporting.
2) Call "RegisterExceptActionHandler" with "stDontSync", then wait for the "eaSendBugReport2" event. When that event is fired, manually call one of the email functions exported by madExcept, e.g. SendSmtpMail or SendMapiMail.

This way madExcept will do the Mantis stuff for you, while your code will add email sending.

Hope this works for you?
Post Reply