Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have to write a scheduler which sends an email automatically to the clients on a particular time.

Can anybody please help me out to write that scheduler? Because m having no idea how to do this. I am using c# in MVC3 using linq.

Thanks
Posted
Updated 15-Feb-13 1:06am
v2
Comments
Zoltán Zörgő 15-Feb-13 7:09am    
Sorry to disappoint you, but this task is NOT really related to linq, and absolutely not with MVC3. An asp.net application is not suitable to perform scheduled tasks, since in general it is not running continuously.
Vicky.tts 15-Feb-13 7:16am    
Dear Zoltán Zörgő,
Thanks for the response.
can you help me out regarding the Scheduler for sending mail to client?

Hai,
There is another solution
Create a console application and write your code build it....you will get a .exe file in bin folder of your application and give that .exe file to windows schedular.....
 
Share this answer
 
You have two options:
1) As already posted by Ranjithkumar54(Solution 1), you could build a console application and execute it through Windows Scheduler.
2) You could create a Windows Service application and run it that way.

You should not try to run scheduled applications from a web application because a web application is a simple Request/Response system. Unattended processes are not meant to be run in this environment.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900