Jump to Content

Objective HTML

Postmaster

The definitive email solution for ExpressionEngine

Trigger tag

This hook will send an email anytime a Postmaster trigger tag is parsed. This was was specifically created to programatically send emails within a template.

Extends

Hooks API


Example


{exp:postmaster:trigger
	subject="This is your email subject, it is optional"
	entry_id="1"
}
	{hook:entry_id}
{hook:title}
{hook:url_title} {/exp:postmaster:trigger}

Exceptions

If the default End Script setting is not set, two emails will be sent.


Hook Variables

subject
If a subject was passed, it will be available as a variable too
tagdata
The parsed tagdata
entry_id
The entry id
side_id
The site id
channel_id
The channel id
title
The entry title
url_title
The entry url title
status
The entry status
custom_fields
Any custom field will also be parsed