Email Data Destination
An Email Data Destination
A Data Destination specifies where to send data from a submitted form. You can use Data Destinations to automate data sharing and storage, routing data to a specific service (such as email or cloud storage) in several different formats. sends an email to chosen recipients when a user submits a form that matches its filters. Use it to send a PDF of the Form Submission to a customer, to the submitter, or to office staff. Send to a fixed list of recipients, to email addresses that field users enter in the form, or both.
Available on all tiers:
Note:Confirm that an Email Data Destination meets your compliance requirements before you set it up. If you must maintain HIPAA compliance, don’t use an Email Data Destination.
Contents
Set up the destination basics
On the Destination Basics tab, you name the Data Destination and set how it sends email.
- Name: The name that identifies the Data Destination in lists and in the Form Builder.
- Destination Unique Identifier: An ID that must be unique in the FormSpace
FormSpaces are where forms are stored and organized in the TrueContext Web Portal. A TrueContext Team may have multiple FormSpaces, depending on their needs. Admins can set FormSpace permissions to control which users have access to the forms in that FormSpace.. - Disable this destination: An option that keeps the Data Destination visible but stops it from accepting Form Submissions.
- Auto-Link new forms to this destination: An option that links new forms in the FormSpace to this Data Destination.
For more information about these settings, refer to Creating and Managing Data Destinations: Destination Basics.
Choose an SMTP server
An Email Data Destination sends its emails through the system-supplied SMTP server or through your own SMTP server. In the SMTP Server section, choose one of the following options:
-
Use the System-supplied SMTP Server to send your emails: Emails route through the TrueContext email server and send from donotreply@truecontext.com. This option needs no setup from your IT team. Keep in mind that recipients don’t always recognize the sending address and can mark the messages as spam.
-
Use your own SMTP Server to send your emails: Emails send directly through your SMTP server, and they can come from an address on your own domain. Your customers recognize these emails more easily. TrueContext support has less ability to troubleshoot email issues on your server.
Your own SMTP server needs an Email Connection. After you select Use your own SMTP Server to send your emails, choose an existing connection, or create one in the Custom SMTP Server Configuration section without leaving the Data Destination. A connection that you create here is linked to the FormSpace of the Data Destination automatically. For more information about the connection settings, refer to Email Connection.
Set when to get failure notifications
When a Data Destination fails, the system retries it on a schedule, and a later retry often succeeds. To choose when you hear about failures, go to the Error Handling section. The Wait to send failure notification email until list sets how many failures happen before the system emails your Problem Contact Email Addresses. The default is 3rd failure (~1 hour).
For more information, refer to Set up Problem Contact Email Addresses.
Choose which Form Submissions to send
On the Filtering tab, you set which Form Submissions the Data Destination sends. If a Form Submission doesn’t match the filters, the system doesn’t send the email. The tab has three filters:
- Form Version State: The form versions to include. The default includes Active and Archived versions.
- Submission Workflow State: The workflow states to include. The default includes Completed.
- Answer Filtering: Rules that match answers or other data in the Form Submission.
For more information about each filter, with examples, refer to Apply Filtering to Data Destinations.
Set the email headers and recipients
On the Email Headers tab, you set where replies go, what the subject line says, and who receives the email.
Set the reply-to address
The reply-to address receives any reply to an email that the Data Destination sends. In the Reply-to section, choose one of the following options:
- None: The email has no reply-to address, so replies go to the sending address.
- Custom Email Address: Replies go to the address you enter.
- Form Submission Submitter's Email Address: Replies go to the email address of the user who submitted the form. This option is the default.
Write the subject line
The Email Subject Line Expression field sets the subject of each email. Enter static text, Data Reference Expression Language (DREL
Data Reference Expression Language (DREL) is used to get form data and metadata and add it to a string, such as dates, usernames, or answers to questions in forms.) references to answers in the form, or both. The default expression is TrueContext Form Submission - %f - %u, which adds the form name and the submitter.
For example, %f - %d - %a[CustomerName] creates a subject line like “Customer Site Visit - 2026-10-29 - John Smith”. In this example, CustomerName is the Unique ID
A Unique ID refers to the specific identifier of a question, form page, form section, or Data Destination. Unique IDs are used as reference points when pulling data for conditional logic, Analytics projects, Data Destinations, and Documents. of the question that collects the name.
Note:The Email Subject Line Expression field accepts up to 255 characters.
Choose who receives the email
In the Email Recipients section, you add recipients to three recipient types: To, CC, and BCC. For each type, choose from the following options:
- Form Submitter: The user who submitted the form.
- Form Submitter's alternate email: The alternate email address on the submitter’s User Profile.
- Form Submission Listeners: Users in the submitter’s Groups who have the Form Submission Listener permission. For more information, refer to User Permissions.
- Groups: All members of the chosen Groups.
- Extract email addresses from the submitted Form: Email addresses from answers to the questions whose Unique IDs you enter. These questions must have an Email Data Type.
- Add other email addresses: Any other email addresses that you enter.
- Each recipient can appear in only one recipient type. To move a recipient to a different type, remove it from its current type first.
- When an Email Data Destination has more than 50 recipients, the system splits them into emails of up to 50 recipients each. The system fills each email with To recipients first, then CC, then BCC. For example, 55 To, 25 CC, and 10 BCC recipients send as two emails:
- Email 1: 50 To
- Email 2: 5 To, 25 CC, and 10 BCC
Choose what the email body contains
On the Email Body tab, you set the message that recipients read. In the Email Contents section, choose one of three options:
- Define a custom email body: A message that you write.
- Use a standard HTML Document for the body: The Form Submission, formatted as HTML. A new Email Data Destination uses this option by default.
- Blank email: No message.
Write a custom email body
With the Define a custom email body option, you write and format the message and insert answers from the form where you need them.
-
Select Define a custom email body.
-
In the Custom Email Content field, replace the default message with your own. Use the rich text editor to add styles, tables, and lists.
Note:The Custom Email Content field accepts up to 8,000 characters.
-
To insert answers from the form, add Data Reference Expression Language (DREL) references. For example:
- To greet a contact by name, enter
%a[Unique ID]with the Unique ID of the question that collects the name. - To sign the email with the submitter’s name, enter
%u[name].
- To greet a contact by name, enter
-
To include an image, do one of the following:
- For an image stored online, select Insert Image, and then enter the image URL in the Source field.
- For an image on your computer, open it, right-click the image, and select Copy. Then right-click in the email body and select Paste.
-
To preview the email body, select Example.
Result: The system shows a sample of the email body.
Show the Form Submission in the body
With the Use a standard HTML Document for the body option, what the body contains depends on whether you add an HTML document to the Data Destination:
- No HTML document: The body uses the standard layout. After any header lines, it shows the form name and a table of submission details, such as the reference number and submitter. Every page and section of the form follows, with each question and its answer.
- An HTML document: The document replaces the standard layout in the body. The system doesn’t send the HTML document as an attachment. If the Data Destination has more than one HTML document, the system uses the first one in alphabetical order by name and doesn’t send the others. Other documents on the Data Destination, such as PDF documents, still arrive as attachments.
You add documents to a Data Destination in the Form Builder. For more information, refer to Connecting Destinations and Documents to Forms.
A checkbox controls two header lines at the start of the body: Include a hyperlink to the form submission in the portal at the top of the email. The first line names the user who submitted the form. The second line links to the Form Submission in the Web Portal. A new Email Data Destination has this checkbox selected. To start the body with the Form Submission content, clear the checkbox.
- When you choose Define a custom email body, the system doesn’t send the HTML document.
- If you link the Data Destination to a Multi-Language Form, the system shows the Form Submission content in the selected language. The translated content includes the question text, answers, and metadata labels.
Send an email with no body
With the Blank email option, the email has no message. Email clients are more likely to treat an empty email with attached documents as spam.
Attach files from the Form Submission
On the Attachments tab, you choose which files from the Form Submission arrive as separate email attachments. In the Send as Separate File Attachments section, select the types of files to attach:
- Photos and sketches
- Audio recordings
- Signatures
- File uploads
- Annotated documents
Note:These options don’t affect how documents use these files.
Our email service provider does not support the following file types for Email Data Destinations. If field technicians upload these file types, the files are not attached to emails.
|
|
|
|
|
This list applies whether the Data Destination uses the system-supplied SMTP server or your own. The email still sends without those files.
For more information, refer to Creating and Managing Data Destinations: File Configuration/Attachments. To name the attached files, refer to Attachment File Naming.
Test and troubleshoot the destination
Test each Data Destination before your team starts to use the form. Testing confirms that recipients receive the Form Submission data correctly. For testing and troubleshooting recommendations, refer to Troubleshooting Data Destinations.
![The Custom Email Content field with a greeting that uses %a[Customer Name], a message with %a[Additional Comments], a signature that uses %u[name], and the Example button.](../Resources/Images/DataDestinationPages/EmailDataDestCustomContent.png)
