Skip to content

Send email is disabled

Detection

  • String: Send Email is disabled or activities are not allowed
  • String: Unknown user permission: SendExternalEmailAvailable
  • Replaces: Unknown user permission

Examples

  • Error Admin Unknown user permission: SendExternalEmailAvailable

Resolution

Email deliverability of the target org does not allow all emails.
- The deployment action below sets it to "All email" before the deployment (Browserforce)
- Or do it manually: Setup -> Deliverability -> Access level "All email"

Deployment action

A deployment action can solve this error. Create it on the Pull Request of the current branch:

sf hardis:project:action:create --agent --scope pr --pr-id current --when pre-deploy --type browser --label "Allow all emails in Deliverability" --browser-setting emailDeliverability --browser-config '{"accessLevel":"All email"}'

A deployment check only simulates a browser action. If this check still fails on this error once the action is created, apply the setting once in the target org with the Run in another org button of the VS Code Deployment Actions tab, or with sf hardis:project:action:run --select-org, then run the check again.

Documentation: https://amtrack.github.io/sfdx-browserforce-plugin/settings/emailDeliverability/

Comments