Sending email in background based on duedate property

0
Hi, I have an app that have task entity (name, priority...and due-date properties) The task entity is associated with Owner entity (name, address, email)… I want the app to send an email in the background to the Owner 2-hours ahead of the duedate. (Email body and subject will be taken from the task entity properties) Your help is more than welcome.
asked
1 answers
2

You could just setup a Scheduled Event to run every X minutes then select any task entities that are due between the current datetime + 2 hours and current datetime + X minutes + 2 hours. That should capture everything that will be due in 2 hours and before before the next run of the scheduled event. You can then send emails relating to those entities.

Hope this helps.

answered