TABLE OF CONTENTS › Textpattern Forms as Email Templates

In this context, a FORM is a Textpattern form, just like any you create on the PRESENTATION > FORMS tab. They will be templates for your emails, into which you can insert Textpattern tags and Postmaster custom tags so that each email will be unique to the subscriber.

NOTE: In order to use a custom form for your emails, you must enter the name of the TXP FORM into the List Form field in the TXP > PM > Lists > Edit page.

The simplest email template is for a text email. These are great for anything from a notification that a new post has been entered, to a full-blown text newsletter.

The first step is to build the framework; the boilerplate text that will appear in every email; then add tags for the content that will change. Something like this:

===============
TEXT NEWSLETTER
===============

Dear <txp:bab_pm_data display="name" />,

A new post has been entered at <txp:site_url />.

Excerpt: <txp:bab_pm_data display="excerpt" />

===========

<txp:bab_pm_unsubscribeLink type="text" />

There is a whole industry devoted to creating text emails, so there is plenty of information on making them great.

Here is the default form, as another example:


<txp:bab_pm_data display="author" /> has posted a new article at <txp:site_url />.

Read article at: <txp:bab_pm_data display="link" />

Unsubscribe: <txp:bab_pm_unsubscribeLink />

Back to the Table of Contents

Comment

I would like to share some resources on designing nice plaint text emails:

Maniquí · Feb 17, 09:19 AM · #

Just note in the doc that the form must be set in List subtab, I have searched for about an hour to find that!

But great plugin thanks ;)

Dragondz · Mar 5, 08:13 AM · #

Textile Help

Official Documentation for Postmaster (A Textpattern Plugin)

Get Postmaster

RELATED

REGULARS

DISCLAIMER

Postmaster is a plugin for Textpattern, and is licensed under the GNU GPL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licens for more details.