You need to sign in to do that
Don't have an account?
Sandbox: NO_MASS_MAIL_PERMISSION error despite Deliverability set to All Email
I'm running some code in a sandbox and am getting the error...
However, my as you can see in my email settings - my deliverability is set to All Email. What am I missing?

Thanks,
Steve
NO_MASS_MAIL_PERMISSION, Single email is not enabled for your organization or profile.: []
However, my as you can see in my email settings - my deliverability is set to All Email. What am I missing?
Thanks,
Steve
Even if your production environment is sending emails - you can't assum the following to be true in its sandboxes
All Answers
1) https://help.salesforce.com/HTViewSolution?id=000002868
The reasons are :
>>Trial accounts do not allow the use of mass email. You will have to purchase a license to go live with your org.
>>You are missing a permission in the backend and must log a case with Salesforce support to enable "Respect SendEmail API" and "SendEmail API".
>>The access level might have been set to "system e-mails".
In setup | Administration setup | Email Administration | Deliverability, verify if the access level is set to "All e-mails".
The e-mail deliverability is a new feature released in spring 13 and as per the release notes, all newly refreshed sandboxes default to "system email only"
- It's in a licensed sandbox
- The prod instance has been sending emails for a long time so the requred APIs are enabled there and I'd be very surprised if those settings didn't make it into sandboxes. (sandbox was created yesterday)
- The access level is set to All Email as shown in the screen shot.
So - I'm stumped.Even if your production environment is sending emails - you can't assum the following to be true in its sandboxes