Send email when current time becomes equal to time inside a document


The topic title is pretty self explanatory. I have a collection name connections and every connection has a date to it. I want to send an email to a user 3 hours before a connection “expires” i.e. when the current time is equal to the connection time.

My answer was to use something similar to Tracker.autorun on server side because Tracker.autorun itself is Client only. I used the peerlibrary:server-autorun package but that package breaks my app and thrown an error out of box.

Is there anything I can use to accomplish this?



You can use or to set up a background task that poll the collection every T-mins/hrs and fire up the tasks.