tags:

views:

28

answers:

1

I have been building a multi-user database application (in C#/WPF 4.0) that manages tasks for all employees of a company. I now need to add some functionality such as sending an email reminder to someone when a critical task is due. How should this be done? Obviously I don’t want every instance of the program to be performing this function (Heh each user would get 10+ emails).

Should I add the capability to the application as a "Mode" and then run a copy on the database server in this mode or would it be better to create a new app altogether to perform "Global" type tasks? Is there a better way?

+1  A: 

You could create a windows service/wcf service that would poll the database at regular intervals for any pending tasks and send mails accordingly.

Some flag would be needed to indicate whether email is send or not for a particular task.

Aseem Gautam
"create a windows service/wcf service" I guess if this is the way to go I could learn how, I am somewhat of a novice. I read that and knew how a deer feels in the headlights :)
Mike B
http://msdn.microsoft.com/en-us/library/zt39148a(VS.80).aspxTry google.. plenty of help there.
Aseem Gautam
Hmmm doesn't look too terribly complicated. Thanks for the tip.
Mike B