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
BBajajBBajaj 

How we can send deferred email using apex code??

Is it possible to use apex code for sending an email  after an interval of time.???

Actually I want to update a field using apex/record,that is achievable I guess but I want that after sometime of this update, mail should be send,
is it possible??? 

Arish_KhanArish_Khan

Hi BBajaj,

 

 

Its not possible to have a time interval in an Apex code. I suggest you to better use Standard WorkFlow rules to send the emails where you can use Time Based work flow Actions to send the emails after some interval.

 

 

Please let me know, if it helps.