Skip to main content

Configure Email success and failure responses

Configure optional plain-text success replies and safe failure replies for Email Handler Payloads.

Configure Email success and failure responses

Use Email Response on an Email Handler Payload to control the plain-text reply sent after processing an incoming email. The settings apply to every Email Service on that Payload.

Success replies are optional. Failure replies use a safe default when the configured value is blank or unavailable; detailed errors remain on the Job.

Configure the reply

  1. Open the Email Handler Payload and select Email Response at the end of the Actions sequence.

  2. Select Edit in the Email Response section.

  3. Enable Send a success reply if successful processing should send a reply.

  4. Set the success body using a static value or another supported Value Source.

  5. Set the failure body. Use text that remains useful if an early Action fails.

  6. Save the settings.

For a mapped reply, choose Payload Data and select the Action and String value to use. A value produced by a Target that never ran cannot be included after an earlier failure. The default failure message covers blank or unavailable failure mappings.

Replies are plain text. Do not depend on HTML formatting in the body.

The Email Response editor enables success replies and configures separate success and failure text.

Choose a Value Source for each body; keep failure text useful when processing stops early.

Understand multiple-service behaviour

An email can match more than one configured service. A success reply is sent only when all matching services enable success replies and resolve to the same body.

If failed Payloads resolve to different failure bodies, Payloads uses the default failure message. Keep related services' reply policies consistent if they can match the same email.

For success replies, Payloads uses the incoming email's Reply-To address when available, otherwise its sender address. Failure handling returns the configured message to Salesforce's inbound-email service; verify the actual failure notification and destination through the configured service.

Verify processing and delivery

Send a test email from a controlled mailbox through the actual Email Service. Check the resulting Job, Email Action data, Target results and Email Response details, then confirm delivery in the receiving mailbox.

A recorded response body alone does not prove delivery. Check any send error as well as the processing result. Replaying saved Job data is not a substitute for testing the real inbound email and reply path.

Select Email Response on the Job to inspect these outputs:

Output

Meaning

success

Whether processing succeeded across the matching Email Services.

replyEnabled

Whether a non-blank response body was resolved.

body

The resolved success or failure text.

sendAttempted

Whether Payloads attempted to send a separate success email. Failure handling returns its result to Salesforce instead.

sendAccepted

Whether that send attempt completed without a reported error. null means no separate send was attempted. Acceptance does not prove mailbox delivery.

A completed Email Job shows a successful response with sendAttempted and sendAccepted set to true.

The Job records successful processing and an accepted send attempt. Confirm receipt in the destination mailbox separately.

For a controlled failure test, use a disposable record and deliberately invalid input. In this example, an email body longer than the Account Name limit caused the Target and Job to fail. No Account was created, and Email Response recorded the configured failure text with success: false, sendAttempted: false and sendAccepted: null.

A failed Target and Job retain the configured failure response in Email Response outputs.

Email Response can show Completed while the Job is Failed: the response was recorded without a separate send error. Check the Job status and the success output to assess processing.

Confirm failure notification delivery separately through your actual mail route. A mailing list or forwarding alias can change that route. A recorded failure response does not establish that a notification reached the sender.

Keep failure text appropriate for the sender. Use the Job for internal diagnostics rather than mapping technical exception detail into an external reply.

Did this answer your question?