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
PrasanthsagarPrasanthsagar 

Issues with email message

Hi,
I have a custom code written in the before insert trigger of EMAILMESSAGE which takes the email ids of Contact roles and keeps it in the CCAddress of email message record. When I click the Send email button, I was able to save the record and see the email ids in the CC address, but unfortunately the email is not being sent to the contacts. Any thoughts on this? Help would be highly appreciated.

Thanks,
Prasanth.
Vinita_SFDCVinita_SFDC
Hello Prashanth,

Could you please check debug log once to verify if email was sent. (Setup|Administration setup| Monitoring|Debug logs).

Also check the setting at Setup|Administration setup|Email administration|Deliverability|Access level

Access level should be "All email".

If this doesn't help the please share your code.