I am developing an application that has a small feature of sending some SMS messages and Emails using some external web services.
These messages can be scheduled to be sent right now or in the future on a certain date at a certain time. They can also be scheduled to be sent every day/week/month.
How can I design my system to "know" when to call the sending method (without polling)?