Salesforce email

Deliver an output document by Salesforce email. The Email Delivery Option sends documents by email with Salesforce email servers (in contrast to SMTP Delivery which uses a non-Salesforce SMTP service to email documents). You configure the standard delivery options, then select an (optional) Salesforce template or an HTML template. When you generate documents with a Salesforce Email Delivery, you make final adjustments to the email before you send.

Tip: Why use Salesforce Email? Your end users have an opportunity to edit some options in the email (address fields, subject header, etc.) before they send it.

This feature is supported in the DocGen Lightning Component.

Add or edit Salesforce Email Delivery

You can add an Salesforce Email delivery from the DocGen Package Wizard or the Delivery Options related list on a DocGen Package. The wizard offers access to the most common options for deliveries. Additional options are available by editing the delivery from the related list, such as adding additional email addresses to the To, CC or BCC lines, limiting availability for Mass DocGen Package, and turning on Tracking in Microsoft Word documents.

(Optional) Add or edit a template

You can assign a template to the email you send with Salesforce Email delivery. When you generate documents, data from your organization replaces the tags or merge fields in the email templates.

You have two options: 

To assign or edit a Salesforce template

  1. From the Force.com app menu, select Nintex DocGen, and then click DocGen Packages.

    Tip: You can also select this from Lightning with the App Launcher.

  2. From a DocGen Package that has a Salesforce email delivery, on the Delivery Options related list, click Name for the delivery option.

  3. On Delivery Option Detail,  click the Select Email Template link to choose an existing Salesforce Template.

  4. Choose the folder where the templates are stored, and then choose the Salesforce Template by clicking Select.

(Optional) Add a field for a subject line to the Salesforce Delivery Option edit page

The subject field is available on the layout, but you have to drag the field onto the page layout to make it available. If you add a field for a subject line, you can enter a default subject that will appear in every Salesforce email your users deliver. If you don't enable the Auto Send option, the user will have the option to edit the default subject line before the email is sent.

To add a field for a subject line

  1. From Setup, type Objects in the Quick Find box, then click Objects for a list of custom objects in your organization.

  2. Click Delivery Option.

  3. Click Page Layouts.

  4. In the Page Layouts related list, click Edit for Email Layout.

  5. From the Field picker, select Subject and drag it onto the page layout.

  6. Click Save.

Use Salesforce Email delivery

Once you add the Salesforce Email Delivery Option to your DocGen Package, users whose profiles are in the Security Section of the DocGen Package can delivery documents by email.

To test the Salesforce Email Delivery

  1. From the Force.com app menu, select Nintex DocGen, and then click DocGen Packages.

    Tip: You can also select this from Lightning with the App Launcher.

  2. Open a DocGen Package with a Salesforce Email Delivery. .

  3. Click Select Record , select the record, contact, and then select the Salesforce Email Delivery. For more information, see DocGen Package object testing

  4. Select Run DocGen Package.

  5. Select Compose Email.

  6. Edit the email using any of the following options:

    • To - Main recipient of the email. The email of the contact selected in section 1 of the run DocGen Package page will be inserted here.

    • Related To - The object and record will automatically populate here depending on where the Generate Documents DocGen Package button is selected.

    • Additional To - Emails entered into the "Additional To" field on the Delivery Option will be defaulted here. More email address can be added in the interface.

    • CC: - Emails entered into the "CC" field on the Delivery Option will be defaulted here. More email addresses can be added in the interface.

    • BCC: - Emails entered into the "BCC" field on the Delivery Option will be defaulted here. More email addresses can be added in the interface.

    • Subject - The subject of the SF Email Template selected in the Delivery Option will be defaulted here. If no Salesforce Email Template is selected, the subject will appear blank. The subject can be edited in the interface.

  7. Click Send.

Below is the output from the selected Salesforce Email Template on the Delivery Option. If no template is selected within the Email Delivery Option, the body of the email will default blank.

At the bottom of the Salesforce Email interface, you will have access to the output file the app produced. In the Classic Experience for generating documents, you can attach additional files by clicking Attach File.

Related information

SMTP Service

Email templates