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
CaukajunCaukajun 

Avoiding the Org Email Limit

Hi all,

 

We recently ran into the org email limit of 1000 outbound messages per day.  To get around this, we've had to change the way we send emails in our application so that instead of creating a single message with multiple recipients using the setCcAddresses method, we are now having to send multiple messages to each recipient individually using setTargetObjectId. This gets us around the email limit since we are now sending each message to our internal users, however, each message no longer shows who the other recipients of this message are. Do any of you know how we could address multiple User's in a single email message? We have looked into MassEmailMessage class, but this requires a 1 to 1 relationship between User ID's and record ID's sent to setWhatIds. Our use case requires multiple recipients be alerted for each record, however, all of the recipients are internal SF users. Is there a way to do this so that none of them count against the org email limit?

 

Thanks in advance,

caukajun

AdrianCCAdrianCC

Hi Caukajun,

 

Just asking, why are you doing this with apex? Couldn't you do this with a WF rule(maybe timed)?

 

How are you sending the emails now? Trigger, batch, scheduler? Is it an action triggered by a user?

 

Thanks,

Adrian