Problem
Emails cannot be sent from sandbox or UAT environments. Email records may show status āRenderedā but never send, or errors may include āFailed to resolveā DNS errors pointing to the courier staging API. This typically occurs after a sandbox refresh.
What We Found
By default, email sending is disabled in sandbox environments to prevent accidental emails to real suppliers or customers during testing. After a sandbox refresh, this setting resets to disabled. The setting āEnable Emails in Sandboxā in App Settings controls whether emails can be sent from non-production environments.
Solution
- Navigate to Setup in your Salesforce sandbox
- Search for āCustom Settingsā in the Quick Find box
- Find āApp Settingsā in the list and click āManageā
- Click āEditā on the App Settings record
- Find the checkbox āEnable Emails in Sandboxā and check it to enable
- Click āSaveā
- Attempt to send the email again - it should now send successfully
Notes
- This setting resets to unchecked (disabled) every time you refresh your sandbox
- Production environments do not require this setting - it only applies to sandboxes
- If you have multiple sandbox environments (UAT, Dev, Full Copy), you need to enable this setting in each one separately
- The setting controls whether Kaptio emails route through the email service (SendGrid)
Warnings
ā ļø Once enabled, emails WILL be sent to actual recipients - ensure you are testing with appropriate test email addresses or the sandbox email is properly configured
Source: KHELP-12189