EurekaLog newsgroups
Go Back   EurekaLog newsgroups > Support > General
Reply
 
Thread Tools Display Modes
  #1  
Old 09-May-2006, 01:37 PM
Zapato Zapato is offline
Junior Member
 
Join Date: May 2006
Posts: 2
Default Activate Email Send option using code

hi,

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.

Thanks.
Reply With Quote
  #2  
Old 09-May-2006, 02:23 PM
admin
Guest
 
Posts: n/a
Default Re: Activate Email Send option using code

Hi,

Zapato wrote:
> hi,
>
> 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:


uses
   ExceptionLog, ECore, ETypes; // Required units.

procedure TForm1.EurekaLog1ExceptionNotify(
   EurekaExceptionRecord: TEurekaExceptionRecord; var Handled: Boolean);
begin
   with EurekaExceptionRecord.CurrentModuleOptions do
   begin
     EMailSendMode := esmEmailClient;
     EMailAddresses := 'email@address.com';
     EMailSubject := 'Email subject here!';
     EMailMessage := 'Email message here!';
   end;
end;



> 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.
>
> Thanks.


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/seteur...procedure.html

--
Best regards...

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler option assiciated to "Activate Eurekalog" ? Michel Lefebvre General 2 12-Oct-2009 02:41 PM
Manual Send Option bCrooker Suggestions 1 11-Jun-2009 07:13 AM
Send clipboard data option? Rick Suggestions 3 14-Jan-2008 12:43 PM
Email option: SMTP Server Peter Müller-Mannhardt General 3 16-Nov-2006 08:44 AM

All times are GMT. The time now is 02:11 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © EurekaLab s.a.s. - VAT ID: IT05554520824