PDA

View Full Version : Sending emails from computers with no internet connection


piotr.rezmer@ens.net.pl
25-Aug-2005, 08:49 AM
Hello,

I have some customers with systems without internet access. When AV appears eurekalog tries to send email, but of course, without success. Due to send problem, modal dialog appears. Is there any way to avoid this ? I want to keep eurekalog enabled in release, since other systems have internet connection. Is it possible to disable "send mail" option in runtime ?

admin
25-Aug-2005, 09:28 AM
piotr.rezmer@ens.net.pl wrote:
> Hello,
>
> I have some customers with systems without internet access. When AV
> appears eurekalog tries to send email, but of course, without success.
> Due to send problem, modal dialog appears. Is there any way to avoid
> this ? I want to keep eurekalog enabled in release, since other systems
> have internet connection. Is it possible to disable "send mail" option
> in runtime ?

Yes, of course.

You can use an ExceptionNotify event like this:


uses
ExceptionLog, ECore, ETypes; // The required units...

procedure MyNotify(ExcRecord: TEurekaExceptionRecord; var Handled:
Boolean);
begin
ExcRecord.CurrentModuleOptions.EMailSendMode := esmNoSend;
end;

--
Best regards...

Fabio Dell'Aria.

piotr.rezmer@ens.net.pl
25-Aug-2005, 09:45 AM
thanks.

Just to be on the safe side, I set the value at application startup.

-
best regards
Peter