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
DTCFDTCF 

BCC Email Address Restrictions from Apex?

I'm seeing curious behavior out of the Salesforce BCC email functionality.

 

When using syntax such as:

 

String userEmail = 'user@email.com';

 

    mail.setBccAddresses(new String[] { userEmail });

 

or


    mail.setBccSender(true);

 

It doesn't seem to BCC to emais where the address is the address of the current Salesforce user.

 

Is this by design? I've tried it with numerous other email addresses where they do not correspond to emails owned by a Salesforce user.

 

Thanks!

SurekaSureka

Hi,

 

I am not very clear with the question. My understanding is that, "Emails are not sent to the BCC Email Id even if you set". Is that correct?

 

If so, Try going to Setup-> Personal Setup - > Email - > My Email Settings -> There is an option to automatically BCC "Would you like to automatically BCC emails to your return address?" .

 

Check if the above feature helps you.

 

Thanks