TABLE OF CONTENTS › Unsubscription Option

Adding the following:

<txp:zem_contact_checkbox name="zemUnSubscribe" label="Unsubscribe:" required="no" value="on" />

Will display a checkbox that a user can check, and submit (along with an email address) to unsubscribe (so that your users don’t always have to unsubscribe from a link in an email).

Alternatively, jdykast submits this tag that works:

<txp:zem_contact_secret name="zemUnSubscribe" value="on" />

NOTE: This is not to be used as a standalone item; it needs at least the email field and the submit button to work. In addition, you may need to add the required="no" attribute to some fields.

A simple form using the method above would be:

<txp:zem_contact to="youremail@yourwebsite.com" >
<txp:zem_contact_email name="zemSubscriberEmail" label="Your Email:" />
<txp:zem_contact_checkbox name="zemUnSubscribe" label="Unsubscribe:" required="no" value="on" />
<txp:zem_contact_submit />
</txp:zem_contact>

Back to the Table of Contents

Comment

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.