🧪 Experimental KB — Official knowledge hub: community.kaptio.com

How to Enable Emails in Sandbox Environments

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 AP

sandbox email configuration custom-settings sendgrid uat

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

  1. Navigate to Setup in your Salesforce sandbox
  2. Search for ā€˜Custom Settings’ in the Quick Find box
  3. Find ā€˜App Settings’ in the list and click ā€˜Manage’
  4. Click ā€˜Edit’ on the App Settings record
  5. Find the checkbox ā€˜Enable Emails in Sandbox’ and check it to enable
  6. Click ā€˜Save’
  7. 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

Was this article helpful?