Create a New Notification
You will need to already have a form created.
- First, access the form that you want to create a notification for. This is done by clicking on Forms on the left side navigation menu, then clicking on your desired form.
- At the top menu, hover over Form Settings and click on Notifications.
- You should now see a list of all notifications that exist for that form. By default, there should already be a single notification that sends the submissions to the admin email address within your WordPress installation. The list may be sorted alphabetically by clicking on the “Name” header. To add a new notification, click the Add New button.
- First, pick a name for your notification. This is simply something to easily identify the notification. Any unique name will be fine.
Enter the Email Settings
- You will see a setting labeled Send To. This allows you to determine how the message is sent. The options available are the following:
- Enter Email: This can be a merge tag for a field in your form like
{Email:2}
, a single email address, or multiple email addresses separated by a comma that all notifications for this form will be sent to, eg:[email protected]
or[email protected],[email protected],[email protected]
- Select a Field: This option will allow you to send the notifications based on the contents of an email address field in the form.
- Configure Routing: This option will allow you to change the Send To email address used for the notification based on the options that the user selects in the form. See this documentation for more details.
For the purpose of this article, we are just going to take a look at the Enter Email option.
When you have the Enter Email option selected, the Send to Email field will be available. Within this field, enter the email address that you want your form notifications to be sent to.
- Enter Email: This can be a merge tag for a field in your form like
- You will need to configure a few different fields related to the email being sent. The first of these is the From Name field. When a notification email is sent, this is the name that will be displayed as the sender. Here, you can set this to something static, or dynamically generate that data. In this example, we want the name field from the form to be used as the From Name in the notification, click on the merge tag icon to the right of the field, and click on the field that you are using for the name.
The number in the merge tag is the value of the field_id. Example: {text:4} will select field ID 4. {name:5.3} will target the 3rd subfield of the field ID 5. For more information on merge tags, refer to this article.
- Next up is the From Email field. This is the email address that is displayed as the sender when receiving the notification. You may set this to {admin_email} or use a static email address, but always use a valid from email to prevent sending and deliverability issues.
- There is also the Reply To field in which the reply address may be set. This can take a static email address, or use merge tags by clicking on the icon to the right of the field.
- The BCC field will allow you to set an email address in which the notification email will be copied to. This is useful if you have an individual that wants to receive all notification emails when sending to multiple people.
Message and Subject
The Subject and Message fields are the most important part of the notification. This is the content that lets you know the content of the form that was filled out. These default to a subject stating the form that was filled out, as well as the message containing the form content. Just like many of the previous fields, these also support merge tags to dynamically generate content. For most people, the default content is fine, but you may change this to anything you wish. Using the drop down icon next to the input boxes, you can select your form fields merge tags and also additional merge tags.
Disable Auto-Formatting
WordPress runs a function to help add paragraph spacing to your email text in order to help readability. If you’ve carefully crafted your notification layout (e.g. using HTML) and do not want any meddling from the system, select the Disable Auto Formatting checkbox below the message field.
Adding An Attachment
As of Gravity Forms 2.4, if there are File Upload fields on the form, the Attachments option displays. By selecting this option, the files that are uploaded on the form are included when the Notification is sent.4