function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
khushbu parmar 5khushbu parmar 5 

Can we send an Email on change of Email Deliverability? Is it possible? I want email on change of Email Deliverability from "All Email" to "NO Access" OR vice versa.

VinayVinay (Salesforce Developers) 
Hi Khushbu,

No access: Prevents all outbound email to and from users and there won't be any emails sent from your org.

Review below link.
https://help.salesforce.com/articleView?id=emailadmin_deliverability.htm&type=5

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
{tushar-sharma}{tushar-sharma}
Hi Khusbu,

We cannot write trigger/Workflow/Process builder on Email Deliverability. Neither I believe we can check it in Apex without sending a dummy email and catch the exception. So what you want to achieve is not possible.
Second point, If Email Deliverability is not All Email then we cannot send email from apex, So even if you get the Deliverability value you still won't be able to send email. So this task is not doable.

If this answer helps you, please mark it as accepted.

Regards,
Tushar Sharma
https://newstechnologystuff.com/
 
khushbu parmar 5khushbu parmar 5
Hi Vinay

Can we do by using the API callouts?

Thanks,
Khushbu Parmar
VinayVinay (Salesforce Developers) 
Hi Khushbu,

No you cannot use API as well.

Below is Idea link for same.

https://success.salesforce.com/ideaView?id=08730000000cHBEAA2

Hope above information was helpful.

Thanks,
Vinay Kumar