Hello,
On 10/07/2004 09:24 AM, Marco Tabini wrote:
Finally, you will need a fast mailing mechanism. mail() is not your only option--you can interface directly with any mailer through SMTP or pipes, for example--but in my experience, you don't need to go any further to make things work properly. What you really need, is a fast
This is a common misconception. It seems that most people confuse queueing with deliverying.
Queuing via SMTP is a much slower method than queuing messages directly to the local mailer. The TCP communication overhead is much higher than sending data via pipes or just dropping messages in the local mailer queue.
When you run a bulk mail campaign it does not matter how fast the local MTA can send messages to the remote recipients because often the messages are just dropped in the local queue a delivered later.
What matters is how long does it take to inject a message in the local queue so your bulk mail script can run faster.
Some people think that queueing via Sendmail is slower than via SMTP because their Sendmail installation is configured to attempt to deliver the messages immediately and that can take too long. The solution is not using SMTP. The solution is to configure sendmail to just queue the messages so its queue manager can deliver them later and your PHP bulk mail script can run much faster.
Nowadays even queueing with Windows 2000 or later using IIS or Exchange mail servers is even faster than doing it with sendmail/qmail/etc.. because it allows drop mail messages in a special folder for later pickup and your PHP script can run much faster the bulk mail campaigns because all it is needed is to write queued messages files, so no pipes needed to be opened.
All these mail queueing optimization tricks and a few other have been implemented in this class that can be used to take advantage of this knowledge on how to queue bulk mail messages the fastest way possible depending on your preferred delivery method: mail, sendmail/exim/postfix, qmail, SMTP, windows pickup, etc...
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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php