I'm looking to set up some sort of cron job to send an email based on the value of a Date/Time field in Form Submission assets associated with a Custom Form.
When a Form Submission asset is created, the Date/Time field will be set to a date in the future (likely using the JS API), at which time an email will be sent to the user.
Is there a way in Matrix to do this? The only thing I can think of is running a JS API script nightly to run through all Form Submissions to check the aforementioned date field, and, based on that, amend an arbitrary metadata field on the asset that would cause a Trigger to send out an email.
Seem slightly hacky, and I wondered whether there was a nicer to way to do it within Matrix?
Any thoughts welcome.