Re: Re: mailing list using mail()

From: Date: Wed, 10 Apr 2002 12:54:02 +0000
Subject: Re: Re: mailing list using mail()
Groups: php.general 
Request: Send a blank email to php-general+get-92384@lists.php.net to get a copy of this message
Is there anyway you could break this up into managable chunks maybe. I'm currently doing something similar in that I'm writing a PHP based list server app that uses a heirarchical grouping system, but mine is broken done into smaller chunks based on group and user permissions. What if you did a 1 second sleep between each user send? While it would take a very long time to parse through the list of users the mail server would still be able to respond quickly and not have PHP timeout.
From: Yasuo Ohgaki <yasuo_ohgaki@yahoo.com> To: php-general@lists.php.net Subject: [PHP] Re: mailing list using mail() Date: Wed, 10 Apr 2002 20:46:57 +0900 MIME-Version: 1.0 Received: from [216.92.131.4] by hotmail.com (3.2) with ESMTP id MHotMailBE7D714200A640043720D85C830472400; Wed, 10 Apr 2002 04:47:15 -0700 Received: (qmail 99799 invoked by uid 1010); 10 Apr 2002 11:47:04 -0000 Received: (qmail 99780 invoked by uid 1007); 10 Apr 2002 11:47:00 -0000 From php-general-return-92371-anzak Wed, 10 Apr 2002 04:47:23 -0700 Mailing-List: contact php-general-help@lists.php.net; run by ezmlm Precedence: bulk list-help: <mailto:php-general-help@lists.php.net> list-unsubscribe: <mailto:php-general-unsubscribe@lists.php.net> list-post: <mailto:php-general@lists.php.net> Delivered-To: mailing list php-general@lists.php.net Message-ID: <3CB42631.30504@yahoo.com> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020328 X-Accept-Language: ja, en-us, en References: <3CB419E7.4090507@vsa.co.za> <20020410111456.69776.qmail@pb1.pair.com> X-Posted-By: 210.154.73.126 Michael Virnstein wrote:
Should I just use one message and append the BCC: line of the one message?
this could probably be the best way.
Right, but some MTA cannot handle too large header(s). Why don't you use list server in first place? For example, ezmlm support database backends if you are using qmail. PHP has ezmlm_hash function for it. -- Yasuo Ohgaki
"Petre Agenbag" <internet@vsa.co.za> schrieb im Newsbeitrag news:3CB419E7.4090507@vsa.co.za...
Hi, the combination of PHP and mysql and the ease of use of the mail() function obviously leads me to believe that it *should* be a singe to use php to send customised messages to all my users , of whom I have details in a mysql table by simply running a "select * from table" and then using a while loop to run through every row and sending an e_mail to $user_in_table. The obvious problem here is that ( in my case 17 000 users) this can easily kill the mail server and could also cause the script to timeout or ( if increasing the timeout) kill the server outright. So, what are my options? Should I be attempting this ( if not, how can I keep others that are hosting on my machines from trying this with their own tables) Should I just use one message and append the BCC: line of the one message? Thanks
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

« previous php.general (#92384) next »