A template is a saved email design with a subject line. You can start a campaign or an automation email from one. Templates are found under Templates in the sidebar.
Start from the library
The template library has ready-made designs for the emails most products send, grouped as Transactional, Marketing and Lifecycle.
- Go to Templates and click Browse library.
- Search, or filter by category.
- Click Preview to see the full design and its subject line. If the template uses merge tags, they are listed under Fill these in.
- Click Use (or Use this template in the preview).
The template is copied into your own templates, where you can edit it freely. The library copy is not changed.
Create a template
Go to Templates and click New Template. Give it a Template Name (for you) and an Email Subject, then design the content in one of three tabs.
Design: the drag-and-drop builder
The Design tab opens a visual builder. Drag blocks in from the panel on the right, then click any element to edit its text or style. You can type a merge tag straight into any text block.
The builder can also import HTML you paste in, and show you the exact HTML it will send.
When you save, the builder produces email-ready HTML with the styles written onto each element. This matters because some large mailbox providers drop separate style sheets, which would leave your email unstyled.
HTML Code
The HTML Code tab shows the template's HTML for direct editing. The merge tags are listed below the editor; click one to insert it where your cursor is, in the subject or the HTML.
If the template was built in the designer and you edit its HTML here, your changes are kept but the saved block layout is dropped. The template then reopens in the designer from your new HTML.
Preview
The Preview tab shows the email at the standard 600-pixel width.
Click Create Template to save, or Update Template when editing. To change a template later, click Edit on its card; the bin icon deletes it.
Using a template
- In a campaign, choose it under Template (optional). See Campaigns.
- In an automation email, choose it under Start from a template. See Automations.
Either way the content is copied in. Editing the template later does not change a campaign or automation that already used it.
Merge tags
Merge tags put each recipient's own details into the subject, preview text or body. Write them in double curly brackets.
| Tag | Gives |
|---|---|
{{name}} |
Full name, or the part of the email address before the @ if there is no name. A safe choice for greetings |
{{first_name}}, {{last_name}}, {{full_name}} |
Name fields |
{{email}} |
Email address |
{{phone}}, {{address}}, {{address_2}}, {{city}}, {{state}}, {{zip}}, {{country}} |
Contact details |
{{unsubscribe_link}} |
The recipient's own unsubscribe link |
{{company_name}}, {{company_address}} |
Your company name and postal address from Settings → Company |
You can also use your own contact fields. Create them under Contacts → Contact fields, then write the field's key as a tag, for example {{plan_name}}. In event-triggered automations, {{event.<property>}} is also available.
Fallbacks
If a contact has no value for a tag, the tag is replaced with nothing. To show something else, add a fallback after a pipe:
<p>Hi {{first_name|there}},</p>
A contact called Ada sees "Hi Ada,". A contact with no first name sees "Hi there,". The fallback can contain spaces and punctuation.
Merge tags are filled in for campaigns, automations and test sends. Mail sent through the transactional API or SMTP relay is sent exactly as you supply it, so fill in any personal details in your own code before sending.
The unsubscribe link
Every campaign and automation email gets a footer with an unsubscribe link and your postal address, whether or not you use the tag. Use {{unsubscribe_link}} when you also want the link somewhere in your own design:
<a href="{{unsubscribe_link}}">Unsubscribe</a>
For a campaign tagged with a topic, the link opens the recipient's email preferences, where they can turn off just that topic or unsubscribe from everything. See Preference centre.
Send a test to yourself
Once a template is saved, click Send a test to myself.
- Who gets it. Always the address you sign in with. You cannot send a test to anyone else.
- What is sent. What is on screen now, even if you have not saved it. The subject starts with
[Test]. - Merge tags. Filled with your own name and email where we have them, your company details, and sample values for the rest, such as "Example City".
- Who it is from. If you have a verified domain of your own, the test comes from it: the From address of your most recent campaign on a verified domain, or otherwise
noreply@your first verified domain. It is signed with your domain's DKIM, so it arrives as your real mail would. If you have no verified domain, it comes from the Pigeonify test address.
A test from your own domain goes through the usual account checks. If your company details are missing or your allowance is spent, the test is sent from the Pigeonify test address instead, with a note saying why. If your account is suspended or the content is refused, the test is not sent.
A test does not include the unsubscribe footer that real campaign emails get.
Related
Questions? Email support@pigeonify.com.