Mail_Queue::sendMailsInQueue

Mail_Queue::sendMailsInQueue() – Send mails from queue.

Synopsis

require_once 'Mail/Queue.php';

mixed Mail_Queue::sendMailsInQueue ( integer $limit = MAILQUEUE_ALL , integer $offset = MAILQUEUE_START , integer $try = MAILQUEUE_TRY , string or array $callback = null )

Description

Sends mails remaining in queue.

Parameter

integer $limit

Optional - maximum number of mails to send.

integer $offset

Optional - skip $offset mails and start sending from there.

integer $try

Optional - count of tries before mail returns to queue for later delivery.

string $callback

Optional - details of callback function to be used after mail has been sent.

Return value

returnsTrue on success else Mail_Queue_Error object.

Throws

throws no exceptions thrown

Note

This function can not be called statically.