IMHO having scheduler call into the controller and execute the action methods to fire off notifications worked out best. My process (for better of for worst) is as such:
Put the code to call the controller/action in a .vbs file. The action method requires a "security code" that must match a value in the web.config or else it will not execute (my thinking is that this will lessen the chance of some folk hitting the action method with there browser and running the send notification code when it shouldn t be run).
Create a scheduled task in Scheduler to call that file on a regular basis.
In my database, log all notification executions and include an attribute that defines the frequency in which different notification types should go out. This, again, is to lessen the chance of someone sending out notifications when they shouldn t.
Anyhow, this works. The only problem I had was hitting vis https. That didn t work as I believe the task was being challenged to provide some credentials (which it couldn t as it was being run programmatically). Changing it to http worked and imo doesn t create any kind of security risk.
Thoughts? Better way to implement this? I d love to hear anything anyone has to offer.
Thanks