Menu
All plugins

Email Templates for Bricks

Write Bricks form emails in a proper editor. You build reusable email templates in wp-admin, then tell any Bricks form which template to send. It replaces the small native email textarea and does nothing for forms that don’t use it.

Version: 0.4.7 · Requires: WordPress 6.5, PHP 8.1, Bricks · See how it works

Quick start

  1. Activate the plugin. A Bricks Emails menu appears in wp-admin.
  2. Go to Bricks Emails → How to Use → Starter Template Library and create the Master wrapper and Admin enquiry starters. They open as drafts.
  3. Edit the master. Keep {{content}} in it; that is where each email body is placed. Publish it.
  4. Edit the admin enquiry. Choose the master under Master wrapper, set To under Delivery Settings, and publish.
  5. Edit your Bricks form. Under Actions after successful form submit choose Email Template, then pick the template in the Email Template control group.
  6. Turn the native Bricks Email action off on that form, or visitors trigger two emails.
  7. Send a test with Send Test Email, then submit the real form once.

Template types

  • Email content template is the email a form sends. It has a subject, body, recipients, optional visitor confirmation and optional CTA button.
  • Master wrapper is the shared shell: logo, layout, footer, legal copy. It must contain {{content}}. Change the master once and every email that uses it changes on the next send.
  • Reusable snippet is a small block, such as a signature, inserted with {{snippet:slug}} or {{snippet:123}}. Snippets and masters can’t be sent from a form.

Only published templates and masters are used. The post title is an internal name; the real inbox subject is the Email subject field.

The editor

The guided strip jumps between steps: Write, Wrap, Send, Submitter and Map, or Show All. Beside the body are a health checklist, preview and test buttons, and a placeholder list.

  • Body source: the WordPress editor for ordinary copy, or Raw email HTML for full documents, table layouts, head styles and media queries. Don’t paste a full email document into the normal editor; WordPress rewrites it.
  • Delivery Settings: subject, To, Cc, Bcc, Reply-To, From name and email, HTML or plain text, and the success message Bricks shows. Leave From email blank to let your SMTP plugin choose the sender.
  • Submitter Confirmation Email: optionally send the visitor their own copy with its own subject, body and master.
  • Field Mapping Assistant: after one real submission it lists the field keys Bricks sent. Map them to friendly names, for example trip_name = form-field-trip-name.
  • Advanced Settings: a form default key and the fallback shortcode.

Placeholders

Use double braces in the subject, body and delivery fields. Bricks field IDs work directly, and the form-field- prefix is stripped.

  • Form values: {{name}} {{email}} {{phone}} {{message}} {{all_fields}} and any field ID.
  • Site and page: {{site_name}} {https://bricks-playground.co.uk} {{home_url}} {{admin_email}} {{page_title}} {{page_url}}
  • Date and time: {{year}} {{date}} {{time}} {December 4, 2026} {{current_time}} {{submitted_at}}
  • Layout: {{content}} (masters only) and {{snippet:slug}}
  • Logo: {{logo_url}} {{logo_alt}} {{logo_width}} {{logo_img}}. Set the logo in the Email Body box with Choose Logo.
  • Button: {{cta}} {{cta_text}} {{cta_url}}
  • Conditional: {{#if phone}}Phone: {{phone}}{{/if}} shows the block only when the field has a value.

CTA button

CTA means call to action: the button for the next thing the reader should do. Put {{cta}} in an email or master and it becomes an email-safe styled link.

  • Set a default under Bricks Emails → How to Use → Settings → Global CTA: text, URL, colours and alignment.
  • To override it for one email, fill both CTA text override and CTA URL override in Delivery Settings. If either is blank the global button is used.
  • Optional UTM source, medium, campaign and content values are added to the button URL automatically.

Testing and checking

  • Preview Rendered Email shows desktop and mobile widths, plain text and the sample data.
  • Send Test Email sends to the test recipient set under Settings, with sample data.
  • Run Test Matrix sends four checks: admin HTML, mobile HTML, plain text and visitor copy.
  • Compare With Previous shows the current render beside the last saved version.
  • Validation warns about a missing recipient, a master without {{content}}, a draft or deleted master, and Reply-To that depends on {{email}}.

Settings, log and tools

  • Settings: default master for new emails, test recipient, log size (10 to 500), Global CTA and UTM values.
  • Suppression list: addresses or domains that never get a visitor copy, one per line ([email protected], example.com, @example.com). Admin emails still send.
  • Recent Email Log: time, template, mode, status, recipients, copy status and field keys. Failed rows that saved their field data have a Resend button. It stores field keys and delivery details, not full message bodies.
  • Duplicate in the list makes a draft copy. List filters narrow by type and master.
  • Import and Export moves templates between sites as JSON. Masters are re-linked by slug on import.
  • Attach uploaded files adds local files from Bricks file fields to the email.

If the template picker is missing

Some Bricks versions don’t show the picker. Add a hidden field named nlbet_template_id with the template ID as its value and use the Bricks Custom action. The shortcode prints that hidden field. Alternatively save a Form default key that matches the form’s ID.

Notes and limits

  • Delivery goes through wp_mail, so your SMTP plugin still owns sending.
  • Master HTML and raw email HTML are for trusted admins. Editors without the unfiltered_html capability have raw HTML filtered.
  • Attachments need Bricks to pass local upload paths or URLs.
  • The Form Enhancements plugin recognises this form action by its slug nlb-email-template, so action-based conditions work with it. The slug, shortcode and nlbet_ options keep their original names so existing sites carry on working.
  • Data lives in the nlb_email_template post type and the options nlbet_settings, nlbet_email_logs and nlbet_recent_fields. Uninstalling leaves them in place.