I think the problem might be with Messages. Most of the Winsock components
(I don't know about INdy, just guessing) need windows messages to get
notifications (connected, ready to receive, data available etc). Inside of
an ISAPI DLL or an ASP Component, there's no "message loop" which constantly
checks for and handles messages.

You might want to add code like this interspersed between calls -

var
    MsgRec : TMsg;
begin
  while PeekMessage(MsgRec, 0 , 0, 0, PM_REMOVE) do begin
      TranslateMessage(MsgRec);
      DispatchMessage(MsgRec)
  end;
end;

Call this until you get a certain notification - (either failure or success)
at certain points - after connection , sendign etc.

Deepak Shenoy
Agni Software
http://www.agnisoft.com

----- Original Message -----
From: "Sandeep" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, December 01, 2000 1:23 AM
Subject: [DUG]: Mail Problem


> Hi
>
> I have a dll in which I'm using Indy's SMTP component to connect
> to  a mail server and send mail. But it does not works properly and
> it stops the IIS. It works fine in an application.
>
> Sandeep.
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to