Tuesday, 4 March 2014

Mass Email Users

Problem:
Why we get the following error when sending mail through a class "System.EmailException: SendEmail failed. First exception on row 0; first error: NO_MASS_MAIL_PERMISSION, Single email is not enabled for your organization or profile. Single email must be enabled for you to use this feature.: []" 

Solution:
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"

Page number 46 in the link below :

https://na1.salesforce.com/help/doc/en/salesforce_spring13_release_notes.pdf

No comments:

Post a Comment