Table of Contents

txp:email

The email tag is a Single Tag. Textpattern will replace this tag with a mailto: email link, according to the attributes set.

Syntax

The email tag has the following syntactic structure…

<txp:email />

Attributes

Tag will accept the following attributes (case-sensitive):

email="value"

Any valid email address.

linktext="value"

Displayed link text. Default is Contact.

title="value"

(X)HTML title attribute. Default is unset.

Examples

Simple E-Mail link

<txp:email email="john.doe@example.com" linktext="Contact" title="Send an Email" />

Prepopulate the message's subject and body, leave all other attributes at their default value

<txp:email email="john.doe@example.com?subject=Lorem Ipsum&body=Sit amend" />