hai
i want send mail to my client at everyday 10.00 pm..
how to finish this task using thread in c# WinForm
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mangesh GRank #294 · 8.6K reputationPosted Dec 21, 2016, 1:38 AM EST
so to use simple threading In your application
You can do this
Public void SendMail()
{
//Mail sending code
}
and to call this Thread
Thread thsendmail= new Thread(SendMail)
thsendmail.Start()
another approach is to use the delegates in this You can define the delegates
//Declare the Delegate
Public delegate void sendMail(EmailObject );
To Call this delegate You can use the
sendMail Objdelegatesendmail= new sendMail()
IAsynchResult ia= Objdelegatesendmail.BeginInvoke(EmailObject,null,null );
Here First null is the CallBack Method if u need somethings
snowal raj160 reputationPosted Dec 21, 2016, 1:41 AM EST
Mangesh GRank #294 · 8.6K reputationPosted Dec 21, 2016, 2:32 AM EST
Tapan PatelRank #614 · 3.9K reputationPosted Dec 21, 2016, 7:19 AM EST
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Dec 21, 2016, 7:33 AM EST