Re: SMTP vs mail()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can easily make a mail queue in php yourself with a daemon that checks the queue and sends waiting mail in batches of say 200 per minute. (provided you have access to the cli on the server)

Black
http://rssphp.net
a85020316bb687648d6f73c4eb3bec93 :msg::id

Chris wrote:
Manuel Lemos wrote:
Hello,

on 01/15/2008 07:16 AM Per Jessen said the following:
If there's any way to re-configure the MTA to queue the messages for
later sending, that would save you a lot of overhead on the PHP end...
The MTA will always queue the messages - well, that is certainly the
case for postfix.

qmail too. Sendmail can be configured to just queue the messages too but
that is not its default configuration.

This is all getting way OT for php.

All except exim will queue the message AND have a process that looks at the queue at the same time.

exim has an option called 'queue_only' which then tells it to just store the message and there is no process trying to actually send the emails until it hits another option which tells it when to run the queue.

If you run 'mailq' (or qmail-qstat) while you are sending lots of emails, the numbers and emails will change as emails are incoming and outgoing at the same time. You won't see emails sitting at the top of the send queue for very long because another process is picking it up and sending it.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux