Check Email Deliverability using Salesforce Apex
Messaging.reserveSingleEmailCapacity will thrown an error: System.NoAccessException: The organization is not permitted to send email if the Email Deliverability is not set in Salesforce. So, using it we can check whether ....