如何在ASP.NET中每月自动通过电子邮件发送报告
问题描述:
你好,
任何人都可以给我发送有关此问题的解决方案.
我想发送自动生成的水晶报告并附加到邮件中.
可以使用asp .net和c#Lang每月自动生成该报告.
请给我发送解决方案.
Hello,
Can anyone send me solution on this problem.
I want to send crystal report that is automatically generated and attach to mail.
The report can be generated monthly automatically with asp .net along with c# Lang.
Send me solution for this.
答
为此
您必须制作一个exe,并将其保留在Live服务器的调度程序中,并将其调度为每月运行.或者,您可以创建窗口服务.
您必须在页面加载中完成所有编码.
看到此链接
使用asp.net应用程序发送自动电子邮件 [ ^ ]
简单Windows服务示例 [
For this
u have to make an exe and keep it in scheduler of Live server and schedule it to run on monthly basis. OR u can make Window Service.
U have to do all coding in ur page load.
see this link
Sending automatic email using asp.net applications[^]
Simple Windows Service Sample[^]
我对ashih的5票...
类似的东西我做...
我用来设计一个Windows服务,该服务永久在服务器上的后台运行,然后在每个月末/或每周/每隔x分钟调用我的应用程序中的Web服务...(可以相应地设置)
该Web服务会检查数据库中是否有任何报告生成等...并相应地发送电子邮件
my vote of 5 to ashih...
somthing similar i do...
i use to design a windows services that runs in back ground permanently on server that inturn calls a web service in my application every end of the month / or every week/ or every x minutes .... (can be set accordingly)
that web service check the database for any report generation etc... and sends email accordingly