[SalesForce] How to resolve an “Unknown user permission: SendExternalEmailAvailable” deployment error

When attempting to deploy profiles, you may encounter the error "Unknown user permission: SendExternalEmailAvailable". What does this mean, and how can you resolve it?

Best Answer

This relates to the "Send through External Email Services" setting in Setup. Go to Setup > Email Administration > Send through External Email Services to see the setting. According to the description of that setting,

"Allow users to send emails through Gmail/Office 365 when composing emails in Lightning Experience. The Send Email through External Email Services user permission is enabled by default on standard profiles."

To resolve this error, manually ensure that your settings match in the source and target orgs.

enter image description here