Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to send emails every day to all client who exceed the time by 2 days and add their information with it ... who can help plz
Posted
Comments
Sergey Alexandrovich Kryukov 13-Aug-13 10:18am    
Help with what? Well, send them if this is not spam. What's the problem?
—SA
[no name] 13-Aug-13 10:26am    
i want to do that automatically and take the information from the database

1 solution

Steps For Scheduler:-

1. Make a scheduler (window service)

//Some code

C#
public void StartService()
       {
           Timer timer = new Timer();

           timer.Interval = 86400000; //for 24 hours

           timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);

           timer.Start();
         //  FireProcess(); 
          // SendServiceFiringMail(); Make some funtion which you want
       }



2. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe C:\MyService.exe

It fires 24 Hours.
 
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