Click here to Skip to main content
13,195,379 members (67,121 online)
Rate this:
Please Sign up or sign in to vote.
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.

Posted 14-Feb-13 22:43pm
Updated 15-Feb-13 1:06am
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 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?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There is another solution
Create a console application and write your code build will get a .exe file in bin folder of your application and give that .exe file to windows schedular.....
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171019.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100