PDA

View Full Version : is there a way to put the log's error message into the subject of the e-mail?


Randy Magruder
31-Jan-2006, 07:10 PM
I have a folder full of e-mails from users that just say "Error
Report".

I'd like to have it say "Error Report: "error message here"" so that I
know which e-mail corresponds to which error the user received?
Ideally, some kind of field macro substitution should be available, but
even without that, it would sure be nice if I could check a box that
would put that error message in the subject line of the e-mail.

Thanks,

Randy
--

johnfaris
01-Feb-2006, 08:08 AM
We do this by using the EurekaLog component's ExceptionNotify event. Within this you can change the emails subject as follows:-

EurekaExceptionRecord.CurrentModuleOptions.EMailSu bject := Exception(EurekaExceptionRecord.ExceptionObject).M essage;

Hope this helps.

John.

admin
02-Feb-2006, 08:23 AM
Hi,

johnfaris wrote:
> We do this by using the EurekaLog component's ExceptionNotify event.
> Within this you can change the emails subject as follows:-
>
> EurekaExceptionRecord.CurrentModuleOptions.EMailSu bject :=
> Exception(EurekaExceptionRecord.ExceptionObject).M essage;
>
> Hope this helps.
>
> John.

Yes, so it will work! :)

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

Randy Magruder
03-Feb-2006, 04:24 PM
But then you have to put the EurekaLog component in your app - do you
do this in a datamodule or someplace central? Or do you have to put it
on each of your forms, or what?

Thanks
--



johnfaris wrote:

>
> We do this by using the EurekaLog component's ExceptionNotify event.
> Within this you can change the emails subject as follows:-
>
> EurekaExceptionRecord.CurrentModuleOptions.EMailSu bject :=
> Exception(EurekaExceptionRecord.ExceptionObject).M essage;
>
> Hope this helps.
>
> John.

admin
06-Feb-2006, 08:43 AM
Hi,

Randy Magruder wrote:
> But then you have to put the EurekaLog component in your app - do you
> do this in a datamodule or someplace central? Or do you have to put it
> on each of your forms, or what?
>
> Thanks

You can put it only in the first form created from your project! :)

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

Randy Magruder
06-Feb-2006, 05:33 PM
wow. Please make that clear in your web site or point me to that - I
was looking and missed that.

That makes it way more useful.

Randy
--



admin wrote:

> Hi,
>
> Randy Magruder wrote:
> > But then you have to put the EurekaLog component in your app - do
> > you do this in a datamodule or someplace central? Or do you have
> > to put it on each of your forms, or what?
> >
> > Thanks
>
> You can put it only in the first form created from your project! :)