Re: SMTP vs mail()
| From: | Chris | Date: | Tue, 15 Jan 2008 23:25:20 +0000 |
| Subject: | Re: SMTP vs mail() | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267337@lists.php.net to get a copy of this message | ||
Manuel Lemos wrote:
Hello, on 01/15/2008 07:16 AM Per Jessen said the following: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. -- Postgresql & php tutorials http://www.designmagick.com/qmail too. Sendmail can be configured to just queue the messages too but that is not its default configuration.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.