Each form sends one mail, usually to you, and can send a second one, usually a copy for the person who filled it in. Both are set in the form’s Mail tab.
| Setting | What goes in it |
|---|---|
| To | One or more addresses. A new form uses [_site_admin_email]. |
| From | Sender name and address, such as [_site_title] <hello@example.com> |
| Subject | The subject line |
| Additional headers | One header per line, such as Reply-To: [your_email] |
| Message | The mail’s text |
| Attachments | The tags of file fields, such as [your_file] |
| Send as HTML | Sends the mail as HTML in a simple template your theme can change |
Turn on Send Mail 2 for the second mail. It has the same settings and goes out only after the first mail went.
Mail tags
A field’s name in square brackets prints what the visitor entered. The Tags panel beside the mails lists every tag the form has; click one to put it where your cursor is.
| Tag | Prints |
|---|---|
[your_name] | The field’s value. For select, checkbox and radio fields, the option labels. |
[_raw_your_radio] | The option values instead of their labels |
[_all_fields] | Every field that has a value, a line each: “Your name: Olga”. Fields in a hidden group are left out. |
[group:details] … [/group:details] | The text inside, only when that group was shown |
Pick who gets the mail
Let visitors choose a department, and the mail goes to its address. Give a Select or Radio field options with the address as the value and the name as the label:
sales@example.com : Sales
support@example.com : Support
Then put its tag in To: [department]. In To, Cc, Bcc and Reply-To a tag gives the option’s value, so the mail goes to the address picked, while the message text still shows the name. Visitors can’t send to an address that isn’t on the list. Option values that are emails or phone numbers never appear in the page’s code, so bots can’t collect them: the page carries a code and the server puts the address back.
Special tags print details of the site and the visit: [_site_title], [_site_description], [_site_url], [_site_admin_email], [_date], [_time], [_remote_ip], [_user_agent], [_url], [_post_id], [_post_name], [_post_title], [_post_url], [_post_author], [_post_author_email], [_user_login], [_user_email], [_user_display_name], [_user_first_name], [_user_last_name], [_form_id] and [_form_title].
Campaign tags tell where a visitor came from. Re:Maily keeps the ones of the page the visit landed on (?utm_source=newsletter…) for the whole visit, so they arrive even when the form is on another page: [_utm_source], [_utm_medium], [_utm_campaign], [_utm_term], [_utm_content], and the ad click IDs [_gclid] (Google), [_fbclid] (Meta) and [_yclid] (Yandex). They are saved with the entry and sent with webhooks too.
Problems the Mail tab flags
A tag that no field or group answers to, and a mail with an empty To, are listed at the top of the tab, and the tab gets a warning sign. Fix them before saving, or that mail may not reach anyone.