Hello. Does anyone know a way to asynchronously call a function of an ActiveX
DLL so that the script will continue to process while the DLL processes the
function?

I have an ActiveX DLL that sends e-mail and is called from within some ASP
script which is in a table cell:

<BODY>
<TABLE>
<TD>
<%
objDLL.SendMail
response.write "Mail Sent"
%>
</TD>
</TABLE>
</BODY>

The page hangs while the mail server is contacted and mail sent -about 5
- 10 seconds.

I've tried to flush the HTML in the buffer right before the function call,
but it makes the page go blank until the whole page is processed, ex:

<BODY>
<TABLE>
<TD>
<%
response.flush
objDLL.SendMail
response.write "Mail Sent"
%>
</TD>
</TABLE>
</BODY>

Is this because the HTML code in the buffer at time of flush isn't yet valid
- ie the closing </TD>, </TABLE>, and </BODY> tags have yet to be processed?
(If that is so, seems like it limits the usefulness of flushing the buffer).

Thanks for any suggestions you have.

Joe