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.
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.
vivek kulkarniPosted Feb 26, 2009, 9:27 AM
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,
aryan softPosted Feb 26, 2009, 8:49 AM
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 kulkarniPosted Feb 26, 2009, 5:06 AM
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