UnloadDispatcher

The UnloadDispatcher stops and unloads the queued message dispatcher.

Syntax

UnloadDispatcher()

Parameters

None

Return Values

Returns an empty string if the dispatcher was unloaded successfully. Otherwise returns a string indicating the error that occurred.

Notes

It is not recommended to run two instances of the dispatcher at the same time.

Example

See the QDispContainer.exe sample supplied with source under the installation directory.

The following unloads the dispatcher.


<% Set mailer = Server.CreateObject("ocxQmail.ocxQmailCtrl.1") 
<%

result = mailer.UnloadDispatcher() 
%>
<% If  "" = result Then %>
<P>
Dispatcher loaded.
<P>
<% Else %>
<P>
Dispatcher not unloaded, error message is
<H2>
<%= result %>
</H2>
<P>
<% End If %>


 

See Also

LoadDispatcher

Applies To

ocxQmail ASP Component