Click here to Skip to main content
15,890,932 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hai

i want send mail to my client at everyday 10.00 pm..
how to finish this task using thread in c# WinForm

What I have tried:

C#
Thread thread = new Thread(new ThreadStart(SendMail));
thread.Start();
Posted
Updated 21-Dec-16 0:59am

I think what you need is a scheduler not thread, check this out: Automatically send emails daily at specific time using Windows Service in C# and VB.Net[^]
 
Share this answer
 
In my humble opinion, using the Windows Task Scheduler is a better option.
 
Share this answer
 
Comments
Nataraj Pandiyan 21-Dec-16 7:22am    
how it work can please explain

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