Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Hi sfdc. I've just clarified my question a little bit more. I have a version of that class that runs when my sandbox is refreshed and it works. But I can't send an email as part of the post refresh because the default deliverability settings. I need to change the deliverability settings in apex Commented Apr 25, 2019 at 18:16
  • 'System Email Only' should allow emails to Users.You don't need to set it to 'All Emails'.Please check this link help.salesforce.com/… Commented Apr 25, 2019 at 18:19
  • System email only: Allows only automatically generated emails, such as new user and password reset emails. Especially useful for controlling email sent from sandboxes so that testing and development work doesn’t send test emails to your users. Newly created sandboxes default to System email only. Commented Apr 25, 2019 at 18:19
  • 1
    OOH okay I understand. I was currently hardcoding the email address, but I should just make it email the user I'm looking for directly. I understand now, thanks! Commented Apr 25, 2019 at 18:22
  • I'm still not able to send emails when referencing a user ID directly. I've added code to the question regarding the email construction. Commented May 3, 2019 at 19:16