The Forms application allows you to send two types of emails automatically when a new record is added:
When a user submits the form on the live site, the emails are sent according to configuration made on the Email notification and Autoresponder tabs of the form's editing interface. When you add a form record via the administration interface, you can decide whether to send the emails (as described in Managing form data).
You can configure the notification emails on the Email notification tab of a form's editing interface:
When using a custom notification email layout, you can add the labels or values of the form's fields:
Select a field in the Available fields list box.
Click Insert label or Insert value.
To create a starting point for the layout, click Generate table layout, which adds all of the form's fields organized in a basic HTML table.
Security
Visitors can potentially submit form values containing malicious HTML values. When using a custom layout, form notification emails do not encode field values by default. This can lead to potential HTML injection if the recipient’s email client is configured to display HTML content. If you wish to encode the values of submitted form fields in notification emails, add the CMSBizFormMailEncodeFields configuration key to your project’s appsettings.json or web.config file and set its value to true. Add the key to both your live site and administration projects.
Macros in form emails
You can also insert dynamic values into the form notification settings or layout by adding macros. See Using macros with forms for details.
Only basic macros are supported, such as the form's data fields or localization expressions. Macros that retrieve values from various types of contexts may not resolve correctly when the form is submitted on the live site.