Page 1 of 1

Enhancement

Posted: Tue Aug 20, 2013 4:27 pm
by Dayna
I do beta testing and have several clinics all sending me emails.

When the message arrives, I cannot tell who its from without altering the setup and changing the attachment filename for every office.

It would be nice if I could enter a string through my program setup such that the subject line could be changed from 'Bug Report' to 'Bug Report' + some string.

Dayna.


ps. If such a feature already exists... please beat me up and rub my nose in it.

Re: Enhancement

Posted: Tue Aug 20, 2013 5:04 pm
by madshi
This feature already exists... :D

At runtime you can either globally change the subject line by doing "MESettings().MailSubject := 'Bug Report - Office Daytona';". Or alternatively you could also change it per exceptions by registering a little exception handler (see "RegisterExceptionHandler()"). In your handler you would then do "exceptIntf.MailSubject := '...';". This change would be local to the current exceptions.

Re: Enhancement

Posted: Wed Aug 21, 2013 8:22 am
by Dayna
Thank you.

Re: Enhancement

Posted: Wed Aug 21, 2013 9:06 am
by Dayna
How to use MESettings.MailSubject

my code
{$IFDEF madExcept}
MESettings.MailSubject := LiquidVision.CurrentOffice.Name;
{$ENDIF}

I'm getting an AV when I try to use the code you posted. Do I have to inititalise MESettings? Create some variable? Its 2am and I'm too tired to think.

Please post a sample of how to use MESettings including any initialisation or creating of objects or interfaces... I'm a bit of a newb and find the process not intuitive.

Thanks for your time.
Dayna.

Re: Enhancement

Posted: Wed Aug 21, 2013 9:16 am
by madshi
There is no initialization necessary. Probably the crash comes from your "LiquidVision.CurrentOffice.Name" code and not from accessing madExcept.

Re: Enhancement

Posted: Thu Aug 22, 2013 8:42 am
by Dayna
Geez I hate having my stupidity rubbed on my face.

Thanks for helping.

Dayna.

Re: Enhancement

Posted: Thu Aug 22, 2013 9:14 am
by madshi
Things like that can happen at 2am... :D