Jump to content

[SOLVED] sending a lot of mail


jakebur01

Recommended Posts

If I have say a thousand or so of my customers e-mails to send out, is their a way that I could set the execution time at the beginning of the script and loop through sending an e-mail to each individual one by one and pausing in between?

 

Like, I know the browser might time out after 30 seconds if it does not receive any new data. Could I run a loop that would send a message to the browser every 10 seconds while running the sleep/mail loop.

 

Ex.

 

Loop to browser to keep it going -

 

Send e-mail  ----  sleep for a minute or so --- and send the next e-mail -- sleep -- and so on

 

Thanks,

 

Jake

Link to comment
Share on other sites

I suppose if you have the emails in a database or a falt file you could do a foreach loop on each

 

soemthing like

 


while ($row = mysql_fetch_array($result))
{
mail($name,$subject,$body)

}

 

I know thats simplistic but without knowing if you have a database or what variables they're stored in, but something like that should work

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.