Re: mailing lists/bulk email sending
| From: | Jonatan Bagge | Date: | Thu, 07 Dec 2000 15:07:45 +0000 |
| Subject: | Re: mailing lists/bulk email sending | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29141@lists.php.net to get a copy of this message | ||
How about this one?
https://www.zend.com/codex.php?id=347&single=1
Paul Schreiber wrote:
> Derek Sivers wrote:
>
> >Query("select * from customers group by email");
> >
> >while ($customers = $db->next_record())
> > {
> > $subject = "Hi $customers[name]";
> > $body = "$customers[name] -
> > You look lovely today.";
> >
> > mail ($customers[email], etc.);
> >
> > print "Emailed $customers[name]";
> > flush();
> > }
> >
> >Then just make a simple MySQL maintenance thing, or use phpMyAdmin to
> >administer your list in MySQL!
>
> You *really* don't want to mail 1000 people one at a time. That will time
> out (plus it's a horridly inefficient algorithm).
>
> Paul
>
> shad 96c / 4A CS / mac activist / eda / fumbler
> fan of / jewel / sophie b. / sarah slean / steve poltz / emm gryner /
> / x-files / buffy / dawson's creek / habs / bills / 49ers /
>
> t h i n k d i f f e r e n t.
>
> "It's like signing a record contract is like signing away your
> human rights." -- CMG
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net