The LoadDispatcher method loads and runs the queued message dispatcher. Use this as an alternative to ocxQsrvc.exe, or as a starting point for your own application.
Syntax
LoadDispatcher()
Parameters
Return Values
Returns an empty string if the dispatcher was loaded 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. Make sure ocxQsrvc is stopped or unloaded when this function is called.
Example
See the QDispContainer.exe sample supplied with source under the installation directory.
The following loads the dispatcher.
<% Set mailer = Server.CreateObject("ocxQmail.ocxQmailCtrl.1")
<%
result = mailer.LoadDispatcher()
%>
<% If "" = result Then %>
<P>
Dispatcher loaded.
<P>
<% Else %>
<P>
Dispatcher not loaded, error message is
<H2>
<%= result %>
</H2>
<P>
<% End If %>
See Also
Applies To