Skip to content

Email Templates ​

Easy Forms includes a basic email template for form submissions that will send all the user submitted data by default. You can customize the template to match your brand and requirements.

The template is published during the installation process. If you cannot find it you can publish it again using the following command:

bash
php artisan vendor:publish --tag=easy-forms-emails

Using the template ​

  1. In the control panel, open your form and go to Connect → Email. Add or edit an email.
  2. Set HTML view to vendor/statamic-easy-forms/emails/form-submission. Leave Text view empty and keep Markdown off.
  3. Optionally, write a Message. It's shown above the answers, so the same template also works for a confirmation email to the visitor. Emails with a Message leave out the control panel link.

The template lists the answers by section and links stored uploads to the submission in the control panel, when the form stores its submissions. With Attachments on, the uploaded files are attached and listed at the end.

Using email_view_folder?

If your site sets email_view_folder in config/statamic/forms.php, the template is published to that folder as easy-forms-submission. Select that view instead.

Don't use the namespaced view

The control panel can't save or preview an email that uses statamic-easy-forms::emails.form-submission.

Upgrading from 2.x ​

Publish the template again. This overwrites any changes you made to your copy. The Easy Forms 2 template doesn't escape the submitted answers, so don't keep using it.

bash
php artisan vendor:publish --tag=easy-forms-emails --force

With email_view_folder set, the new template is published to that folder, so also set your forms' HTML view to it.

The default email template.
The default email template.