+ Start a Discussion
S_2013S_2013 

Send yearly email not per object?

Hi,

 

My requirement is to send an email once a year, which will be not on any particluar object, rather a generic email, sent ONLY once, per year. My understanding is that, I have to use Messaging.SingleEmailMessage and Messaging.sendEmail from apex as I cannot use WF (if i use WF, then multiple mails will be sent for each object matching rule criteria, which is not the objecive).

Can you pls state that my understanding is correct?

 

Thanks in advance

Sankalita

AroraAnupAroraAnup

Who will be the recepient of this email? Is it going to Users or Contacts? Also, is there a date/criteria that needs to be considered to trigger this email?

S_2013S_2013

Hello, thanks for replying.

The recipient will be users in a public group in SFDC. Date criteria will be 1st Jan of every year.

 

S_2013S_2013

I am using SingleEmailMessage and a schedulablejob that runs at midnight every month end, and added a check to perform the logic oly if the month = Jan