Skip to content

Sending Queued Emails

objectivehtml edited this page Dec 12, 2014 · 14 revisions

Overview

Postmaster has the ability to send parcels in the future. Once you have your parcels configured to send in the future and items are in the queue, you are going to need to send them. Postmaster makes sending items from the queue at the right time real easy. There are two ways to it:

CRON Job

The easiest option is to setup a CRON job that sends an HTTP request to the following queue:

//yoursite.com/postmaster/queue/marshal

Anytime a request is sent that URL Postmaster will check to see if any items in the queue need to be sent. If there are no items in the queue that need to be sent, nothing will happen.

Queue Service API

If you need to programmatically trigger the queue, you can do so with the following method:

craft()->postmaster_queue->marshal()

Clone this wiki locally