note 88446 deleted from function.sleep by danbrown

From: Date: Sat, 24 Jan 2009 21:00:15 +0000
Subject: note 88446 deleted from function.sleep by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149735@lists.php.net to get a copy of this message
Note Submitter: kevin em two kay at yahoo dot co dot uk ---- Handy to use when you are sending a large number of emails and wish to throttle the connection as not to crash your mail server, simply after your send you could use sleep(2); To sleep for 2 seconds before continuing your loop to send your next email. Need to watch your maximum execution time though, might be worth upping that limit.

« previous php.notes (#149735) next »