ocool(中国科幻 chinasf.com):这个发送邮件的程序用sqlserver的存储过程,然后定期执行这个存储过程,能实现吗?

解决方案 »

  1.   

    应该可以,不过我觉得每当有新新闻时发送邮件可能计较容易实现一点。
    我也是初学,恐怕只能帮你这些了。csdn有一篇文章《.NET环境下几种不同的邮件发送解决方案》,
    可以在你实现时进行参考。
      

  2.   

    there is a simple way to implement it if you are using ms sql server.there is a new add-on tools called Notification service.what you need to do is just specify two xml files, a little bit adjustion to your table if necessary, and that's all, sql server will take care of the remaing part.This is really cool.Please notice this function is not as easy to implement as "ocool" said, to develop a robust one, you need to take care of quite a lot thing.For example, timezone, your server is in china, and your subscirber is in us, and if the user will timely news.............however, notification service will get you out of all these tricks, you don't need to worry about.