View Full Version : Activate Email Send option using code
09-May-2006, 01:37 PM
1.How can I make EL to send emails from code without activating Email Send Options from the tab Send in the IDE Dialog options ?
2. How can i activate EurekaLog using code and having the EurekaLog component on the main form, without activating Activate EurekaLog Option from the IDE Dialog options ?
I need these for our build server.
09-May-2006, 02:23 PM
> 1.How can I make EL to send emails from code without activating Email
> Send Options from the tab Send in the IDE Dialog options ?
You can simply using an OnExceptionNotify event like the following:
ExceptionLog, ECore, ETypes; // Required units.
EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
with EurekaExceptionRecord.CurrentModuleOptions do
EMailSendMode := esmEmailClient;
EMailAddresses := 'firstname.lastname@example.org';
EMailSubject := 'Email subject here!';
EMailMessage := 'Email message here!';
> 2. How can i activate EurekaLog using code and having the EurekaLog
> component on the main form, without activating Activate EurekaLog
> Option from the IDE Dialog options ?
> I need these for our build server.
Currently is impossible use EurekaLog without activating it via
"Project/EurekaLog Options...(Activate EurekaLog" check-box.
So I suggest you to activate it and after disable it, if you want, via run-time
code, using the "SetEurekaLogState" procedure.
See here: http://www.eurekalog.com/docs/seteurekalogstateprocedure.html
Catch every BUG, every time!
vBulletin® v3.8.2, Copyright ©2000-2014, Jelsoft Enterprises Ltd.