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
AichaSFAichaSF 

Messaging.inboundEmail bccAddress

Hello, 

How can I configure bccAddress on Messaging.inboundEmail.
Thank you
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

You can't do that. Bcc stands for blind carbon copy. This field hides the email addresses entered in it. Only the original sender of the email can view the Bcc recipients. 

The primary reason people send blind carbon copies (BCC) is to mask the other recipients from the list of recipients. If the sender bcc'd multiple people (by putting their addresses in the Bcc field before sending), none of those recipients would see who else the email was sent to. So, you are not allowed to see the BCC email address as it would indicate a breach of privacy of the sender.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Deepali KulshresthaDeepali Kulshrestha
Hi,
Greetings to you!

- There is no 'bccAddress' in InboundEmail property so you can't configure bccAddress on Messaging.inboundEmail

- You can use 'ccAddresses' (A list of carbon copy (CC) addresses, if any).


- Please check the properties of 'InboundEmail' in below link: -
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_inbound_inbound.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha.