how to send email daily
how to send email daily at particular time automatically in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Puneet GuptaPosted Oct 7, 2013, 9:47 AM
http://www.codeproject.com/Articles/21418/Scheduled-Tasks-Web-Service
http://www.codeproject.com/Articles/24586/Schedule-your-web-tasks-with-the-WebTaskScheduler
Thanks,
Puneet Gupta
Prasenjit DeyPosted Oct 7, 2013, 5:29 AM
Code for sending mail
try{message =newMailMessage();if(IsValidEmail(txtTo.Text)){message.To.Add(txtTo.Text);}if(IsValidEmail(txtCC.Text)){message.CC.Add(txtCC.Text);}message.Subject = txtSubject.Text;message.From =newMailAddress("[email protected]");message.Body = txtBody.Text;if(lblAttachment.Text.Length > 0){if(System.IO.File.Exists(lblAttachment.Text)){message.Attachments.Add(newAttachment(lblAttachment.Text));}}// set smtp detailssmtp =newSmtpClient("smtp.gmail.com");smtp.Port = 25;smtp.EnableSsl =true;smtp.Credentials =newNetworkCredential("[email protected]","Your Password");smtp.Send(message, message.Subject);}catch(Exception ex){MessageBox.Show(ex.Message);}Veena SardaPosted Oct 7, 2013, 5:13 AM
raman aujlaPosted Oct 7, 2013, 5:05 AM
Suresh BabuPosted Oct 7, 2013, 4:33 AM