|
Posted by Manuel Lemos on 09/28/05 20:30
Hello,
on 09/27/2005 02:44 AM Denis Gerasimov said the following:
> I was said that using Perl script is more suitable for such task since PHP
> scripts have problems with sending large amount of mail.
>
> Is that true or not? Any success/failure stories?
It is a myth that Perl is better (or worse) than PHP for sending
messages to many users. The truth is that usually you do not send
messages directly to the users, but rather queue the messages in your
MTA and it takes care of the actual delivery, retrying later, bounce
handling etc..
I use this popular MIME message class for composing and sending messages
to over 120,000 newsletter subscribers on a daily basis. The class
provides means to employ some tricks to minimize the queue time and
memory usage.
It takes about 1 hour to queue individual messages to all the
recipients. PHP CGI/CLI version are started from a cron job that calls
set_time_limit(0); to let PHP run the script for a long time.
The class comes with examples of optimize its use for bulk mailing.
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
[Back to original message]
|