When we send an email from Salesforce, for example sending an email via Apex class, when we receive the email, the "email@example.com on behalf of" phrase appears.
Resolution Salesforce is not adding that into the emails, that is caused by the email client, which is specific to Microsoft Outlook.
We follow the standards for sending emails, which says that when you are sending on behalf of someone (according to Microsoft SenderID) you should set the Sender field in the header of the email. In this case we set it to sender: firstname.lastname@example.org
To remove "email@example.com on behalf of" follow these steps:
- Click on Setup | Email Administration | Deliverability
- Locate the Email Security Compliance section
- Deselect the Enable Sender ID compliance box
- Click Save
The emails you send will no longer include the "firstname.lastname@example.org on behalf of".