Notifications: Email
This reference explains the Notification: Email task.
Use this task to notify specific email addresses about changes in your Zuora tenant, or send invoices to customers via email.
Note that you cannot resend email notifications created by Workflow.
Email delivery
Workflow email and tenant email notifications use separate email delivery configurations. Advanced SMTP and Workflow email use separate email-sending paths, even though both paths can use Amazon SES. Zuora Workflow uses Amazon SES to send email. The default From address is `workflow@zuora.com`. To use a custom From address, see Use a custom From address.
A Workflow email task can complete successfully even when the recipient mail server later rejects the message. For sender authentication requirements and delivery troubleshooting, see Email deliverability configuration for email notifications and Workflow.
Basic settings
By default, the Preview Email in Logs Without Sending checkbox is checked in the Address tab. When your workflow is ready for use, disable this option. Otherwise, emails would not be sent out.
To allow the logs of emails sent via this task to be included in the Email History report, check the Customer Notification History checkbox. When this option is enabled, you must also specify the Zuora Account ID to which the history will be attached. You can also optionally specify the ID of the object associated with this callout notification in the Zuora Object ID field. Note that there is no validation on the Zuora Object ID field. It is only used for informational metadata and reporting purposes.
If you use a custom From address, receiving mail servers may reject messages unless you authorize Amazon SES to send on behalf of your domain. See Use a custom From address.
To receive replies and email-failure notifications for the current workflow, enter a return path in the Return Path (Email) field. To use one return path for all Email tasks in your tenant, see Additional information about return path. A return path does not replace verification of the custom From address or sender domain.
If workflows in a tenant have issued more than 1,000 bounced emails in one day, Zuora may suspend the workflows in that tenant. If you find your workflow(s) are suspended due to this reason, fix the error causing the bounced emails.
Custom headers
Custom email headers allow you to include additional information in your email notifications, such as tracking identifiers, unsubscribe links, and other metadata tailored to your specific needs.
You can configure custom email headers in the Custom Headers tab. For more information, see Manage email templates.
Body
On the Body tab, you can use the merge field assistant above the text field to obtain the Liquid expression for a merge field.
For security reasons, some HTML tags and JavaScript events are not permitted in the email body, such as HTML, head, and so on. For more information, see Notes and limitations on email templates .
Email attachments
If invoice data is included in the data payload and invoice IDs are present, you can attach invoices to your email by selecting Attach Invoices to Email .
In the Attach Invoices to Email option, the file naming convention for the attachment is invoice number.pdf where the invoice number denotes the number of the invoice.
You can also attach other files in the payload in your email. All available files in the payload are displayed in the Workflow Files section. You can rename the listed files. Click a file name to edit it.
You can attach additional files if the file IDs are included in the payload. You can specify the file IDs using Liquid syntax. The Liquid syntax can be for a file ID or an array of file IDs in JSON format. All files in the array must be valid. Otherwise, the task will fail.
For example, you have the following data payload in your workflow.
"Data":{
"Liquid":{
"files": ["23123khj42342k3","4233234982934","24358349028dfsk"],
"file":"2c92c085783724872"
}
}
You can attach the "files" array and the "file" to the email task using the following Liquid syntax.
{{Data.Liquid.files | to_json}}
{{Data.Liquid.file}}
Note that the maximum data size for an email including attachments is 10 MB. If your email exceeds this limit, an error will occur.
Additional information about return path
If you want to use one email address as the return path for all email tasks in your tenant, go to Workflow's global settings, and enter the Return Path in the Email Settings section.
You can test how special scenarios like email bounces or complaints are handled. For details, refer to the following page: https://aws.amazon.com/blogs/aws/mailbox-simulator-for-the-amazon-simple-email-service/
Zuora Workflow uses Amazon SES for sending emails. If you do not use your own SMTP server for sending emails, you must add the following statement to the SPF record in the DNS configuration for your domain.
include:amazonses.com
For details about adding an SPF record, see Authenticating Email with SPF in Amazon SES.
Use a custom From address
If you use a custom From address, submit a request to Zuora Global Supportfor the three DNS CNAME records required for DKIM verification.
Add the three CNAME records to the DNS configuration for the domain or subdomain used in the From address. Contact your domain registrar or DNS provider for instructions about adding DNS records.
Also add include:amazonses.com to the SPF record for the domain or subdomain used in the From address. This authorizes Amazon SES to send email on behalf of the domain.
The domain or subdomain in the From address determines which identity must be verified. For example, if you use noreply@billing.example.com, verify billing.example.com. Verifying a subdomain does not verify its parent domain. If you also need to send email from noreply@example.com, verify example.com separately.
DNS verification can take up to 72 hours. After verification succeeds, you can use the custom From address for Workflow email across supported Zuora environments, including Production, API Sandbox, Developer Sandbox, and Central Sandbox. The same three CNAME records apply across these environments; you do not need a separate set for each environment.
The custom From address is available only for Workflow email notifications. To use the same address for other tenant email notifications, add the identity to the tenant's SMTP settings. For more information, see Configure advanced SMTP server.
Troubleshoot DKIM verification
If DKIM verification is pending or fails, verify that all three CNAME records are present in the DNS configuration for the domain or subdomain used in the From address. You can follow the instructions on this troubleshooting page.
If the DKIM validation fails, an email will be sent from workflow@zuora.com to you with the subject "DKIM Verification Failed". The email includes CNAME records that you need to enter in your DNS settings. Here is an example of the DKIM validation failure email.
For details about CNAME records or DKIM settings, see Setting Up Easy DKIM for a Domain.
Optional: Configure a custom MAIL FROM domain
You can configure a custom MAIL FROM domain by adding the required MX and SPF records to your DNS configuration. This setting is optional and is separate from DKIM verification of the custom From address. For details, see Setting Up a Custom MAIL FROM Domain.
A successful Workflow email task does not guarantee delivery to the recipient. If an email is not delivered, verify the sender identity, DKIM CNAME records, and SPF record. Also review the recipient mail server's bounce or rejection details for SPF, DKIM, and DMARC results.
Recipients may see `via amazonses.com` in the message display when Amazon SES sends the email. This display is associated with the Amazon SES sending path and does not indicate that Advanced SMTP is configured.
Concurrency Mode
Concurrency Mode: Controls whether Workflow processes tasks in a single or multi-threaded manner for this task type. Select Sequential to single-thread, or Parallel to allow multi-threaded processing.
If you select Parallel, the Max Concurrency setting controls the maximum number of threads for this task type that can be utilized. You can specify a value from 1 up to the allowed maximum for this task type. A value of 1 behaves the same as Sequential processing.