This lesson will cover the following topics:

01 Getting Started

This tutorial covers how to email a document generated in Titan Web.

02 Email Document Configuration

1. Click the Project Settings Gear icon, select the Tools tab, and click Document Generation.

Screenshot displaying how to navigate to the document generation menu

2. Click on the Edit icon of the template you want to edit.

Screenshot of the document generation settings

3. Click Next.

Screenshot of the document generation settings where changes can be made to the document

4. Click the Email tab under General, or click + Add Option and select the Email option.

5. Switch the Enable Email toggle on.

Screenshot of the email tab in the document generation settings

6. Select the Output Format of your document using the dropdown.

Screenshot of the output format options

If you choose PDF format, you can select the tool to convert the document. We recommend you choose Titan 1.

Screenshot showing the recommended settings when choosing a PDF format

7. Set a Custom Name for your document. You can choose between a static or a dynamic file name.

Screenshot displaying how to set a static name

If you choose a dynamic file name, you must select a field name, or you can create a variable for your project.

Screenshot displaying how to set a dynamic name

You can enable digital signatures and optimize image quality for better performance if your document requires it.

8. Click Apply.

Screenshot of the document generation settings with additional settings highlighted

03 Invoking the Action

1. Click on the button and select the Interactivity icon. The On Click Action window opens.

Screenshot of the button menu with the interactivity icon highlighted

2. Select the Start + icon, choose Send Email as the node, and click Next.

Screenshot of the on click action window with the add node screen overlayed

3. Select a previously configured email or create a new one. To create a new one, click the + icon.

Screenshot of the my emails screen

4. In Recipients, configure the recipients for the email. You can set static email addresses or select fields from the project. Click Next.

Screenshot of the configure email settings screen showing the recipients step

5. In Send Via, select whether to send your email via Salesforce or Titan. When sending from the Titan server, you must configure a From Name. Click Next.

Screenshot of the configure email settings screen showing the send via step

6. In Content, your options will differ depending on the selection made in Send Via. If you select Salesforce, you can choose your template from the dropdown. Click Next.

Screenshot of the configure email settings screen showing the content step

Or create the content manually.

Screenshot of the configure email settings screen showing the content step

7. In Attachments, select the file that will attach to your email. Click Next.

Screenshot of the configure email settings screen showing the attachments step

8. Configure an email name and description. Click Apply.

Screenshot of the configure email settings screen showing the email name step

9. Select your email from the list and click Next.

Screenshot showing the configured email

10. Enter a Tag name and click Insert. Your node is configured. From here, you can configure any other action to run. For example, you can display a toast message if the email is successfully sent.

Screenshot of the configured on click action

The configured email action will run when the user completes the form and clicks the email button. 

Screenshot of the example project

Additional Resources