Use this page when a document was generated but the email didn't reach the recipient, or arrived without the document attached. If the document itself didn't generate, start with the document didn't generate checklist.

What you'll see

  • You send the email from the Composer page, or a flow sends it, but the recipient never receives it.
  • The email arrives, but the generated document isn't attached.
  • The email comes from your own address instead of your company's organization-wide address.

Most likely causes

  1. Salesforce doesn't send email from this org. Sandboxes are created with email deliverability set to system email only.
  2. There's no valid recipient. The solution has no recipient, or the recipient record has no email address.
  3. The From address isn't usable. The organization-wide address isn't verified, isn't available to the user's profile, or its ID comes from another org.
  4. The attachment is missing. The document is too large, so the email was sent without it, or, before v1.25, templates you selected on the Composer screen weren't attached.
  5. The email parameters don't fit together, for example directemailpreview with background mode.

How to fix it

Salesforce doesn't send email from this org

  1. In Setup, enter Deliverability in Quick Find and open Deliverability.
  2. Check Access level. If it's No access or System email only, set it to All email and click Save.
  3. Check that the org hasn't reached its daily email limit. Docs Made Easy sends email through Salesforce, so Salesforce email limits apply.
  4. Ask the recipient to check their spam or quarantine folder.

To see whether the email was sent, check the record's Activity History: Docs Made Easy records each sent email there. You can also request an email log in Setup → Email Log Files for the time of sending. The Usages page doesn't track email.

There's no valid recipient

  1. Open your solution's Assign Behaviors page and check the Email settings. Recipients can be set with EmailToId, Additional To, CC and BCC.
  2. Open the record that EmailToId points to and check that it has an email address.
  3. For a flow, the recipients are the ones set up in the solution. The flow itself doesn't choose them. See Send a generated document by email with Flow.

The From address isn't usable

  1. In Setup, open Organization-Wide Addresses and check that the address exists and its status is verified.
  2. Check which profiles can use it. If it isn't available to all profiles, add the profiles of the users who send.
  3. Copy the address ID from this org and paste it into the EmailFromID or owdemailid parameter. These IDs usually start with 0D2 and are different in every org, so update them after a sandbox refresh or migration. See EmailFromId and owdemailid.

The attachment is missing

  1. Check your version in Setup → Installed Packages. Before v1.25, Docs Made Easy attached only the templates added to the solution and ignored templates you selected on the Composer screen. v1.25 fixes this. See the v1.25 release notes.
  2. Check that the template you expect is added to the solution.
  3. Check the document's size. If a document is too large, Docs Made Easy sends the email without the attachment. Templates can be at most 5 MB, so keep templates small and compress large images. See Large documents, timeouts and limits.

The email parameters don't fit together

  • directemailsender=1 sends the email without the preview screen, using the solution's email settings. See directemailsender.
  • directemailpreview=1 skips the Composer page and opens the email preview screen with the document attached. It doesn't work with background mode (bgm), because background mode skips all interactive screens. See directemailpreview.
  • directstandardemail=1 shows a preview of a Salesforce standard email template before sending. It needs a standard email template on the solution (the Standard Email Template field). It doesn't send the email in background mode. See directstandardemail.
  • To send the merged PDF in background mode, use directemailsender=1 with a custom Docs Made Easy email template.

Who can fix it

CauseWho
Recipient missing on the recordThe user who generates the document
Deliverability, organization-wide addresses, profiles, email limitsYour Salesforce administrator
Solution email settings and parameters, upgrading to v1.25The solution's administrator
Email still not sent with everything above correctDocs Made Easy support

Still stuck?

Contact support and send:

  • your Salesforce Org ID (How to share your Org ID)
  • the solution name or ID, and whether you sent from the Composer page, a button with directemailsender, or a flow
  • a link to the record and the recipient's email address
  • the time you sent it, with your time zone
  • any error message in full, including the Error code and Reference