PDA

View Full Version : How to customise email subject and message?


Dominic Dumée
24-Nov-2005, 12:48 PM
Hi

How do I customise the email subject and message? I need to add a unique
client identifier (serial number) to the subject line before the mail gets
sent so that I can tell which of my clients had the problem.

Thanks
Dominic

admin
24-Nov-2005, 02:01 PM
Hi,

Dominic Dumée wrote:
> Hi
>
> How do I customise the email subject and message? I need to add a unique
> client identifier (serial number) to the subject line before the mail gets
> sent so that I can tell which of my clients had the problem.
>
> Thanks
> Dominic

I suggest to use an ExceptionNotify event like the following:

//----------------------------------------------------------------------

uses
ExceptionLog;

procedure EurekaLog1ExceptionNotify(
EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
with EurekaExceptionRecord.CurrentModuleOptions do
begin
EMailSubject := 'Your subject here!!!';
EMailMessage := 'Your message here!!!';
end;
end;

//----------------------------------------------------------------------

I hope to have answered to you, otherwise don't hesitate to recontact
me, ok? :)

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG showing line n.

Dominic Dumée
25-Nov-2005, 06:51 AM
Thanks. :)

"admin" <support@eurekalog.com> wrote in message
news:dm4khm$blr$1@plesk.eurekalog.com...
> Hi,
>
> Dominic Dumée wrote:
>> Hi
>>
>> How do I customise the email subject and message? I need to add a unique
>> client identifier (serial number) to the subject line before the mail
>> gets sent so that I can tell which of my clients had the problem.
>>
>> Thanks
>> Dominic
>
> I suggest to use an ExceptionNotify event like the following:
>
> //----------------------------------------------------------------------
>
> uses
> ExceptionLog;
>
> procedure EurekaLog1ExceptionNotify(
> EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
> begin
> with EurekaExceptionRecord.CurrentModuleOptions do
> begin
> EMailSubject := 'Your subject here!!!';
> EMailMessage := 'Your message here!!!';
> end;
> end;
>
> //----------------------------------------------------------------------
>
> I hope to have answered to you, otherwise don't hesitate to recontact me,
> ok? :)
>
> --
> Best regards...
>
> Fabio Dell'Aria.
> ----------------
> http://www.eurekalog.com
> Catch every BUG showing line n.

rdkram
12-Aug-2009, 12:21 AM
Thank you.

admin
28-Sep-2009, 05:29 PM
You're welcome! :)