By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,373 Members | 1,792 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,373 IT Pros & Developers. It's quick & easy.

Sending mails in PHP with a delay

P: 254
hi all,

well just a question, that how can i send emails in php with a delay. like in a burst i send 10-15 emails at once and then delay for a minute or two (so that server isnt offended). Shall i use sleep() or what else do you recomment.

Another thing i wanted to know was how many mails at once can i send so as not to harm the server. You can consider a very normal SERVER.

Also any ideas, how to show recipient undisclosed .
One alternative i know is to put the recipient's address in BCC and in TO field put your own address. BUt is this the right way to do ?

thanks and regards :)
Dec 27 '07 #1
Share this Question
Share on Google+
1 Reply

P: 3
to make a delay, after u send that 10-15 emails, u can add this in below

echo "<meta http-equiv='refresh' content='2; url=page.php'>";

this code will slow for 2 seconds.. url define what page u want to redirect.. this code like header in PHP, but it will have a delay then redirect the page.
Jan 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.