Hi, beyween two consecutive 'send mail' you may introduce a sleep, as follows: <code> Thread.currentThread().sleep(time_in_miliseconds); </code>
Regards, Ionel Condor. ----- Original Message ----- From: "David Castro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 17, 2002 1:41 PM Subject: Pausing execution? > I looked in the list archives, and didn't find an answer for my dilemma. > > I've got a web application that mails all of the opt-in addresses in my > client's database. I want to avoid overloading his host's SMTP server, so I > want to delay execution between sending each email. > > Can anyone tell me how to code this? > > Also, I'm planning to write to the client a summary line with each email that > is sent, and flush the cache with each line. Will this keep the page alive? Or > will it eventually time out? > > Thanks a million! > > -David Castro > email[at]davidcastro[dot]com > http://jsp.davidcastro.com > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com