<?php
// put this stuff at the top of the program
set_time_limit(0);
ignore_user_abort(1);

// your mail stuff goes here
// once you access the script, close your browser, 
// it should run in the background until finished.


?>
http://www.php.net/manual/en/function.set-time-limit.php
http://www.php.net/manual/en/function.ignore-user-abort.php

Robert V. Zwink
http://www.zwink.net/daid.php

-----Original Message-----
From: bain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 3:41 AM
To: php general list
Subject: [PHP] Sending out mass mail without having timeout problems ..


Hi all 

I've been working on a system for our company that uses MySQL to grab
user data and then send personalized mail to them once a month. 

currently I step thought the mysql result mailling one mail per return.

as you can imagine .. my script timeout value is sitting on 24hours to
allow all the mail in our big database to go throught.

Is there a way I can fork or thread the mail send process so I can send
more then one mail at a time .. or maybe even buffer the MySQL result
and send the mail in the background but still return the browser .. 

any sugestions .. please

-- 
Henti Smith
Systems Administrator
The House Of Synergy
http://www.thos.co.za
[EMAIL PROTECTED]
+27 11 259-9821
--

Let us not look back in anger or forward in fear, but around us in
awareness.
                -- James Thurber


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to