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.

Send a specific mail. (Previous) Math (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

Note by: hikmet1023@hotmail.com
am i wrong to expect sendMailsInQueue to return :

ALL_MESSAGES_SENT_DONT_HASSLE_ANOTHER_QUERY

to notify when all messages are sent

OR

at least featured in Mail_Queue_Error