Len,
 
Below is the documentation on how the JMail Que works.  I'm just wondering if I specify the MSPickupDirectory as the IMail spool directory, will it work?  I'm planning on sending out about 10,000 e-mail, sequentially, in one ASP script as shown below.  I don't mind if the mail server takes all night to send the mail, but I don't want the script to be looping for hours until all the mail is sent.
 
David
 

 
Queing emails

When sending massive amounts of emails, you will need to use the mail queue instead of sending them at once, or else your ASP will time out. This example shows how you use the nq method instead of the send() method. We only send a single email here, but you will get the picture.

   jmailnq.asp


<%@LANGUAGE="VBSCRIPT" %>
<%


' Example on how to use queueing

' The message is set up as usual...

set Message = Server.CreateObject( "JMail.Message" )

Message.From = "[EMAIL PROTECTED]"
Message.Subject = "Testing"
Message.Body = "This is a test mail"
Message.AddRecipient "[EMAIL PROTECTED]","Jean Luc"

' Instead of using the Send() method, we use nq
' The email will be placed in the mail queue and sent
' as soon as the mailservice picks it up.
' We do not need to specify a mailserver, as the
' mailservice does all that for us.

' What we do need to do is to specify where the MS pickup
' directory is. If you are running w3 JMail on a
' Windows 2000 server, this is not neccessary, otherwise

' Unless you are running windows 2000 on your webserver,
' you will need to specify where the MS pickup directory
' is (c:\inetpub\mailroot\pickup\).


Message.MSPickupDirectory = "c:\inetpub\mailroot\pickup\"
Message.nq
%>
<HTML>
<BODY>
Email enqued! </BODY>
</HTML>

--

devredline.gif

Reply via email to