Hi,
I have developed a MIS based project in asp.net 2.0 with sqlserver 2000. I want to send MIS Report daily by email.please help me
Hi,
I have developed a MIS based project in asp.net 2.0 with sqlserver 2000. I want to send MIS Report daily by email.please help me
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
vivek kulkarni132 reputationPosted Feb 26, 2009, 12:06 AM EST
Hi,
You can use Windows service to do this. You can schedule the service to run daily at a particular time.
Please let me know if you require anything else.
Thank you,
Vivek Kulkarni
MCP MCAD.Net
aryan soft3 reputationPosted Feb 26, 2009, 3:49 AM EST
Hi,
Thanks for sending message. My problem is, how can i schedule database bcoz i have no control over it bcoz it is running online sqlserver and i have only limited permission. Plz reply me if there is another solution
vivek kulkarni132 reputationPosted Feb 26, 2009, 4:27 AM EST
Hi,
I belive you would be able to access fetch data with the current given permission.
You can create a windows service which you can schedule to run daily.
Use the System.Web.Mail here is a sample.
MailMessage msgMail = new MailMessage();
Hello World" +msgMail.To = "[email protected]";
msgMail.Cc = "[email protected]";
msgMail.From = "[email protected]";
msgMail.Subject = "Hi Chris, another mail";
msgMail.BodyFormat = MailFormat.Html;
string strBody = "
" ASP.NET";
msgMail.Body = strBody;
SmtpMail.Send(msgMail);
Cheers,