Enhancement

contains all delphi packages mentioned below

Enhancement

Postby Dayna » Tue Aug 20, 2013 4:27 pm

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.
Dayna
 
Posts: 6
Joined: Tue Aug 20, 2013 4:19 pm

Re: Enhancement

Postby madshi » Tue Aug 20, 2013 5:04 pm

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.
madshi
Site Admin
 
Posts: 9408
Joined: Sun Mar 21, 2004 5:25 pm

Re: Enhancement

Postby Dayna » Wed Aug 21, 2013 8:22 am

Thank you.
Dayna
 
Posts: 6
Joined: Tue Aug 20, 2013 4:19 pm

Re: Enhancement

Postby Dayna » Wed Aug 21, 2013 9:06 am

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.
Dayna
 
Posts: 6
Joined: Tue Aug 20, 2013 4:19 pm

Re: Enhancement

Postby madshi » Wed Aug 21, 2013 9:16 am

There is no initialization necessary. Probably the crash comes from your "LiquidVision.CurrentOffice.Name" code and not from accessing madExcept.
madshi
Site Admin
 
Posts: 9408
Joined: Sun Mar 21, 2004 5:25 pm

Re: Enhancement

Postby Dayna » Thu Aug 22, 2013 8:42 am

Geez I hate having my stupidity rubbed on my face.

Thanks for helping.

Dayna.
Dayna
 
Posts: 6
Joined: Tue Aug 20, 2013 4:19 pm

Re: Enhancement

Postby madshi » Thu Aug 22, 2013 9:14 am

Things like that can happen at 2am... :D
madshi
Site Admin
 
Posts: 9408
Joined: Sun Mar 21, 2004 5:25 pm


Return to madCollection

Who is online

Users browsing this forum: No registered users and 2 guests