Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I m using Framework 2.0.
I need 2 trigger a mail for perticuler thing on every monday automatically
Posted

Well, you need to create a Thread (or BackgroundWorker) object that sits and spins while watching for the appropriate date/time, and then you need to google to or search Codeproject for examples of how to send an email from your application. Doing both of those things is fairly trivial, and there are thousands of examples of how to do both on the net.

Personally, I would use a BackgroundWorker because it's easily canceled, and you can easily update the UI (if necessary or desired) to reflect the time remaining before the next mail is sent.

I wrote an article about scheduling (coming up with a regularly scheduled date/time here:

Scheduling Future Dates [^]
 
Share this answer
 
v2
Without a bit more info, difficult to advise.

You could write a simple email program and set it to run under windows scheduler.
 
Share this answer
 
Comments
Alim12345 4-Aug-10 7:37am    
Reason for my vote of 2
Hope so

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