You need to sign in to do that
Don't have an account?
Big Ears
Sandboxes, Unit testing & NO_MASS_MAIL_PERMISSION
I know that sandboxes are now generated with "System Email Only" setting for Email Deliverability. However, this immediately breaks a whole bunch of unit tests.
Has anybody found a workaround for this, other than just changing "Email Deliverability" straight back to "All"? Seems like a bit of an oversight by Salesforce here not to excempt test code from those settings.
Has anybody found a workaround for this, other than just changing "Email Deliverability" straight back to "All"? Seems like a bit of an oversight by Salesforce here not to excempt test code from those settings.
+1.
Have to modify this manually after each refresh
Agree. Besides of that, we have to manually reconnect full sandboxes of two organizations after each refresh. It is also big pain because it is not allowed to do by code execution.
And cancelling\rescheduling schedulable jobs on each deployment is also a big pain.
Salesforce has many such "benefits".