note 107561 modified in function.mail by danbrown

From: Date: Thu, 10 May 2012 20:45:16 +0000
Subject: note 107561 modified in function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187832@lists.php.net to get a copy of this message
Use sendmail in queue mode to prevent long pauses everytime php is calling the mail() function.

<?php
$additionalParameters = '-ODeliveryMode=d';
mail($to, $subject, $message, $headers, $additionalParameters);
?>

Your mails will be delivered everytime the sendmail daemon is processing the queue. To see what the interval may be see the "QUEUE_INTERVAL" variable in /etc/mail/sendmail.conf --was-- Use sendmail in queue mode to prevent long pauses everytime php is calling the mail() function. <?php $additionalParameters = \'-ODeliveryMode=d\'; mail($to, $subject, $message, $headers, $additionalParameters); ?> Your mails will be delivered everytime the sendmail daemon is processing the queue. To see what the interval may be see the \"QUEUE_INTERVAL\" variable in /etc/mail/sendmail.conf http://php.net/manual/en/function.mail.php

« previous php.notes (#187832) next »