Click here to Skip to main content
11,920,211 members (47,552 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# LINQ C#4.0 Scheduler MVC3
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 23:43pm
Edited 15-Feb-13 2: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
0 OriginalGriff 455
1 phil.o 170
2 CPallini 150
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,153
3 George Jonsson 2,810
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web04 | 2.8.151120.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2015
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