You need to sign in to do that
Don't have an account?
SANDEEP DESHPANDE 18
Sending email using BCC in Apex code when Compliance BCC Email flag in ON in org.
Hi All
Need help in using send email in apex using BCC. Our client has enabled "Compliance BCC Email" feature in there box. So what we have understood that we can't use now BCC in Apex code.
We are trying out of for an option.
Our requirement is that.
If there are more than one recipient of the mail, they should not get information that to all whom the email is been sent. So we thought we will use BCC feature of send email in apex.But what we have experinced is apex code throws error stating "when we use Compliance BCC Email we cannot use BCC in apex."
Thanks
Sandeep
Need help in using send email in apex using BCC. Our client has enabled "Compliance BCC Email" feature in there box. So what we have understood that we can't use now BCC in Apex code.
We are trying out of for an option.
Our requirement is that.
If there are more than one recipient of the mail, they should not get information that to all whom the email is been sent. So we thought we will use BCC feature of send email in apex.But what we have experinced is apex code throws error stating "when we use Compliance BCC Email we cannot use BCC in apex."
Thanks
Sandeep
Instead of adding all users to "To" field, create one email each for the users. If you are sending to external email ID's, this approach will actually count against your email limits. However, if you are sending this email to internal users (including portal/community users), use the setter method "setTargetObjectId(targetObjectId)" on the SingleEmailMessage with the corresponding user ID. This will help you work around the limits.
All Answers
Instead of adding all users to "To" field, create one email each for the users. If you are sending to external email ID's, this approach will actually count against your email limits. However, if you are sending this email to internal users (including portal/community users), use the setter method "setTargetObjectId(targetObjectId)" on the SingleEmailMessage with the corresponding user ID. This will help you work around the limits.
We were using Portal so we opted the 2nd option what you have given .
Thanks again !
Cheers
Sandeep