Accessing the Email Deliverability via Apex code & API - Ideas - Salesforce Trailblazer Community

All Ideas

Idea Details

Post an Idea
2,430  Points
Under Point Threshold
Idea hasn't met the 2,500-point review threshold. Give it an upvote or downvote.

Accessing the Email Deliverability via Apex code & API

Apex & Visualforce

Idea : Read and Write access to  Email deliverability in Apex code.

An organization has the ability to enable and disable the Email deliverability. Suppose if the deliverability is switched off and at the same time if  any user in that organization doing any DML operation or executing Batch apex. In those case if trigger code is sending email to particular user or once bacth apex complete its sends email to particular user, in all of this case the code will fail with the below error.
 
Error:First error: SendEmail failed. First exception on row 0; first error: NO_MASS_MAIL_PERMISSION, Single email is not enabled for your organization or profile.: []

Because the Email deliverabilty is switched off and we can't able to check the deliverabilty before sending the email from Apex code. 
So, we need some methods to access both Read and Write to Email deliverabilty.

Merge Idea · Flag

  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.