Form Emails

You may configure a webform to send a submission confirmation to the form submitter and send an email of all form submissions to the person who will need this data. Anyone can receive the form submission data without needing to log into the site daily to check the form for new submissions.

You may also configure the webform to send an email different people based on how the visitor fills out the form.

Configure E-mails

Navigate to the webform you would like to edit.

  1. Using the admin menu: select Structure > Webforms.
  2. Click dropdown arrow next to the form you wish to view submissions and select Settings.
  3. Click on Emails/Handlers.
  4. Press + Add email.
  5. Title: make this distinguishable from the others so you can tell it's for a particular recipient that corresponds with your form for easy identification and future maintenance.
  6. Send To: Select Custom To email address to send to someone in your unit or select the email element to send the the email address in the form submission.
  7. Send From: leave this as the default value or emails will not send.
  8. Send From Name: leave this as the default value.
  9. Reply-to email: You may always use this option if you use the Send from default.
  10. Message: You may configure the message subject and body content. By default the values of all of the form fields will be in the email the recipient is sent.
  11. Expand the Included email values/markup section.
  12. The selected components will be included in the [webform_submission:values] token. Check the boxes next to the components you wish to include in the email.
  13. Check the Exclude empty components and Exclude unselected checkboxes options if you would like.
  14. Click Save.

Set up Conditional Email Recipients

Create custom email routing based on what users have selected in the form. This results in a smoother, simpler experience for your visitor and more accurately targeted email delivery to appropriate people or email accounts in your office.

  1. Create your webform as you normally would.
  2. In the webform tabs, click on Settings.
  3. Click on Emails/Handlers.
  4. Press + Add email.
  5. Title: make this distinguishable from the others so you can tell it's for a particular recipient that corresponds with your form for easy identification and future maintenance. Complete the other Send To, Send From, Message, and Included Email Values as needed.
  6. From the Add Email Handler tabs, click on Conditions.
  7. Set the following:
    • State: Enabled.
    • Element/Selector: You can choose All, Any, or One, and use the Select menu below to choose the question field for this email address.
    • Trigger/Value: Use the Select menu to choose the action taken on this field that will trigger this condition. For example, if I offered a text field or text area, I might indicate a trigger of Filled. Or checked for a checkbox.

      Click to see a larger version

  8. Click Save to finish this step.
  9. Your Conditional Email Filtering page will then be updated to look something like this: 
Click to see a larger version

Note: Use your webform's Test function to verify that the email handlers work as intended prior to making it live and publicly available.


Including link to submission in form emails

A link to the form submission is not included by default, so you'll need to add the token to your email body.

To add this you'll need to change the body from default to custom, and insert this token: [webform_submission:url]