Skip to main content
1 of 4
denvergreene
  • 1.2k
  • 3
  • 20
  • 43

Sending email in sandbox post copy

When I refresh a sandbox I have a class that runs to fix some things like email addresses and custom settings. I've also been asked to email the developer the new org ID so that their testing environments can stay connected.

The problem is I can only send an email once I've switched the email deliverability to "All emails" but I can't do that before the sandbox post refresh happens.

Is there a way to set email deliverability in apex? If not is there another way to get the developer that information?

denvergreene
  • 1.2k
  • 3
  • 20
  • 43