Emails, updated
Template variables
Template variables are mustache tags that FormThunder fills in when it sends an email. All values are HTML-escaped, and triple-brace {{{raw}}} output is stripped from custom templates. You can use them in custom HTML templates, and subject lines can also use any submitted field by name, such as {{name}}. Your AI can fetch this list with list_template_variables.
Submission
| Variable | What it holds |
|---|---|
{{subject}} | The email subject |
{{form_name}} | Name of the form |
{{submitted_at}} | When it was submitted, in UTC |
{{site_url}} | Page the form was submitted from |
{{sender_email}} | The visitor's email, if they gave one |
{{intro_text}} | Intro text set on the form |
{{report_spam_url}} | One-click link that blocks this sender on this form. Notification emails only |
{{dashboard_url}} | Link to this submission in the dashboard. Notification emails only |
{{powered_by}} | The Powered by line. Empty on Agency and client accounts |
Fields
Loop over everything that was submitted. This keeps working when you add a field to the form.
html
{{#fields}}
<p><strong>{{label}}</strong>: {{value}}</p>
{{/fields}}Or pick one field by name.
html
<p>Message: {{field.message}}</p>A top-level {{message}} works too.
Attachments
html
{{#attachments}}
<a href="{{url}}">{{filename}}</a> ({{size}})
{{/attachments}}Brand
| Variable | What it holds |
|---|---|
{{brand.name}} | Brand name |
{{brand.logo_url}} | Logo URL |
{{brand.website_url}} | Website URL |
{{brand.footer_text}} | Footer text |
{{brand.colors.primary}} | Primary colour. Also background, surface, text, muted, border and button_text |
{{brand.font_family}} | Body font stack, with email-safe fallbacks |
{{brand.heading_font_family}} | Heading font stack |
{{brand.border_radius}} | Corner radius, such as 8px |
Subject lines
text
New message from {{name}} about {{topic}}If a field is missing, its tag renders empty, so keep the subject readable without it.