Email Templates

Overview

UniSignIn has two kinds of email templates, both in Email Management:

  • System Templates: the emails UniSignIn sends at sign-in, verification and billing, such as the welcome email and one-time passcode. They work out of the box, and you can change each one.
  • Email Templates: your own emails, built from blocks and personalised with profile data and content lists. Use them in campaigns.

Both are designed in the same block editor, and use the colours, logo and footer from Branding. Emails are sent through the provider set in Email Settings.

Email Management needs the Email permission. Super Administrators and Administrators have it.

System templates

Go to Email Management > System Templates.

EmailSent when
WelcomeA reader registers.
One time passwordA reader signs in with a one-time passcode.
Change passwordA reader asks to reset their password.
Verification LinkA reader needs to verify their email address.
Account closedA reader closes their account.
SubscriptionA reader starts a subscription.
InvoiceA reader is charged for an order, a subscription payment or a top-up.
Renewal ReminderA subscription is about to renew or a free trial is ending.
Countdown ReminderA reader asked for a reminder on a Countdown.

The Status column shows which template is used:

StatusMeaning
DefaultThe built-in template.
Block editor · OnYour template from the block editor is used.
Customized · OnYour HTML template is used.
Block editor · Off or Customized · OffYou saved your own template, but the built-in one is used.

Click Edit to change an email, or Activity to see what was sent.

Edit a system email in the block editor

The block editor starts from a copy of the built-in email, so you only change what you need. Along the top:

SettingWhat it does
EnabledUse this template instead of the built-in one.
From, From name and Reply toThe sender and where replies go. Leave From empty to use the default sender.

Design the email as described in The block editor and click Save.

Some fields are required. For example, the One time password email must include the passcode. The Checks tab shows an error when a required field is missing, and you can't save until it is added.

HTML editor

You can also edit a system email as HTML. Click Use Twig editor in the block editor, or Switch to block editor to go back. The HTML editor has:

  • Enable, Subject, Preview text, From, From Name, Reply To and Reply To Name.
  • Variables, which inserts a value such as {{ user.first_name }}. Variables marked with * are required.
  • Reset to default, which replaces the content with the built-in template. Nothing changes until you save.
  • A live preview, switchable between Desktop and Mobile.

The HTML editor uses Twig in a restricted mode. Preview text is used even when Enable is off, so you can improve the inbox preview of the built-in templates too.

Your email templates

Go to Email Management > Email Templates. The list shows the Name, Type, Project, Subject and when each template was last edited. Use Edit, Activity, Duplicate and Delete on each row, and search by name.

Click New Template and pick a starting point:

StarterWhat it has
BlankHeader, a text block and the footer.
NewsletterAn intro and the latest articles from a list.
AnnouncementA hero with an image and a button, then a short note.
OfferA promotion with a code, a button and the small print.

Along the top:

SettingWhat it does
NameFor you; readers don't see it.
TypeMarketing or Journey emails must have an unsubscribe link and can be used in campaigns. Transactional emails don't need one.
ProjectAll or one project. A campaign can use templates for all projects or for its own project.

Click Save when you're done. Templates with errors in the Checks tab can't be saved.

The block editor

The editor has a panel with three tabs on the left, the email in the middle and the settings of the selected block on the right.

Blocks

Click a block type to add it, drag blocks to reorder them, and select a block to edit it.

BlockUse it for
HeaderBrand name or logo.
HeroImage, headline, text and a button.
HeadingA section title.
TextParagraphs. **bold**, *italic* and [link](url) work here.
ButtonA filled or outline button.
ImageAn image, optionally linked.
CalloutA highlighted box with a title and text.
ColumnsTwo columns, each with an image, title, text and link.
Data listA list rendered with a sub-template, such as articles or order lines. See Lists and sub-templates.
TotalsLabel and value rows, such as subtotal and total.
CouponA highlighted code.
Divider and SpacerSpace between blocks.
Link rowA row of links, such as your social accounts.
FooterCompany, postal address, unsubscribe and preferences links, and why the reader receives the email.
Raw HTMLYour own HTML with merge fields.

Every block also has Space above and below, Block background and Show this block when. Enter a condition, e.g. profile.plan == "pro", to show the block only to some readers. Empty means the block is shown to everyone.

Merge fields

Click the {{ }} button next to a text field to insert a merge field. You can pick:

  • Profile attributes, such as {{profile.first_name}}.
  • Payload fields and Payload lists from the sample data.
  • Brand values from Branding.
  • Sub-templates, and common logic and formatting such as a fallback, a date or a currency.

Add a fallback for values that may be empty, e.g. {{profile.first_name | default:"there"}}. For the full syntax, see Email Merge Tags.

Email settings

Select no block to see the settings of the whole email:

SettingWhat it does
From nameThe sender name.
Subject lineCan use merge fields.
PreheaderThe grey preview text after the subject in the inbox.
Accent, Button text, Text, Muted text, Email background and Page backgroundColours. Use a hex value or a brand merge field such as {{brand.color}}.
Typeface, Content width, Corner radius in px and Side padding in pxLayout.
Use custom link parametersSet utm_source, utm_medium, utm_campaign, utm_content, utm_term and Add unis_eid to identify the email for this template only. Off uses the link parameters in Email Settings.

Data

The Data tab holds sample data for the preview. It is not saved to any real profile.

  • Sample profile: preview as one of your most recent registered users, or edit their values. Leave a value empty to test a fallback.
  • Event payload (JSON): sample data such as an order or a list of articles. It is saved with the template, for previews and tests.
  • Brand: the email branding of the project, to pick as merge fields.

Your content lists are added to the sample data automatically.

Checks

The Checks tab merges the email for every sample profile and lists what would go wrong:

  • Fix: errors that stop you from saving, e.g. an empty subject line, no blocks, a marketing email without an unsubscribe link, a data list without a sub-template or a condition that can't be read.
  • Review: warnings, e.g. a merge field that is empty for some profiles, an image without a description, a button without a URL, or an email larger than 102 KB, which Gmail clips.
  • Note: tips, e.g. no preheader or a subject longer than about 60 characters.

Click an item to jump to the block.

Preview

The middle of the editor shows the email as the selected sample profile receives it.

  • Switch between Desktop and Mobile.
  • Show the email Merged, or With merge tags to see the tags as written. Highlight marks every personalised value.
  • For a template for all projects, choose which project's branding to preview with.
  • The HTML output shows what is sent, with merge tags in place.

Lists and sub-templates

A Data list block repeats a sub-template once for each item of a list, such as the articles of a content list or the lines of an order.

SettingWhat it does
List in the payloadThe list, e.g. content_lists.top_stories. Leave empty to render the sub-template once with the whole payload.
Sub-templateThe HTML for one item.
LayoutStacked rows, Grid, 2 across or Grid, 3 across.
Show at mostThe number of items, 0 for all.
Text when the list is emptyShown when the list has no items.

A sub-template is a small piece of HTML with merge fields for one item, e.g. {{title}} and {{url}}. Every new template comes with ready-made sub-templates:

Sub-templateWhat it shows
Article cardImage, category, linked title, summary, author and date.
Compact article rowA thumbnail beside the title and one line, for digests.
Headline listNumbered linked titles, for top stories.
Line itemName, quantity times price and the line total.

Click New sub-template or Edit sub-template in the block to change one, or add a preset again from the sub-templates panel. Sub-templates can use {{theme.accent}}, {{theme.text}}, {{theme.muted}} and {{theme.font}} to follow the email design.

Content lists

Content lists are lists of articles you set up in Content Management > Content Lists, with pinned articles and matching content. Each list has a merge field such as content_lists.top_stories to use as the list of a Data list block.

A content list is read when each email is sent, so readers get the latest articles. Each item has title, url, image, description, author, category and published_at.

Branding

Go to Email Management > Email Branding and choose a Project. Each project has its own email branding, used by the built-in system emails and available to your templates.

SettingWhat it does
Brand colourButtons, links and highlights.
Button textThe text colour on buttons.
BackgroundThe page background around the email.
Email logo URLThe logo at the top. Leave empty to use the site logo.
Footer textE.g. your company name and address.
Footer linksUp to 4 links, each with a label and URL. Click Add link to add one.

Colours use 6-digit hex values, e.g. #18181b. Click Save Branding.

Under Use in templates, the page lists the merge fields for each setting, e.g. {{brand.color}} and {{brand.logo}}. Each email gets the values of the project it is sent for.

Send a test

Enter an address next to Send test at the top of the editor and click it. The test uses the current content, even if you haven't saved it, with the selected sample profile and sample data. It is sent through your email provider, and the subject of a template test starts with [Test].

Test emails are marked Test in the activity and are left out of Analytics.

Email activity

Click Activity in a list to see every send of an email, newest first. Search by recipient or subject.

ColumnWhat it shows
TimeWhen the email was sent, in your local time.
StatusSee below. Opens, clicks, bounces and complaints show below it with their time.
RecipientThe address it was sent to.
SubjectThe subject, with error details below it.
Message IDThe ID from your email provider. Click to copy it and look up the send in your provider.
StatusMeaning
SentYour email provider accepted the email.
SendingThe email is on its way.
FailedYour email provider rejected the email. Click the error to read it in full.
BouncedThe address doesn't exist or can't receive email.
Spam complaintThe reader marked the email as spam.
Not sent: suppressedThe address is on your suppressed list, see Email Settings.
TestShown next to the status of a test email.

Bounced and Spam complaint need bounce and complaint handling, see Email Settings. Opens and clicks need open and click tracking.

Stay ahead in first-party data

Identity, consent, audience, and subscription insights for publishers. A few emails a month, no spam.

By subscribing you agree to our privacy policy.