如何使用Web服务向客户端发送自动电子邮件 [英] how to send automatic email to client using webservices

查看:70
本文介绍了如何使用Web服务向客户端发送自动电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 3.5和sqlserver 2008,我想知道在启动PC时如何发送邮件.
那个时间的邮件应该每周发送一次.

I am using visual studio 3.5 and sqlserver 2008 and I want to know how to send mail when we are starting my pc.
That time mail should go weekly based.

推荐答案

这将是 Windows服务而不是Web服务.

请查看这篇文章,以了解有关它的更多信息以及如何对其进行编码:简单Windows服务示例 [ ^ ]
Windows Services in Action I [
It would be Windows Service and not web-service.

Have a look at this article to learn more on it and how to code for it: Simple Windows Service Sample[^]
Windows Services in Action I[^]

This service would keep running at the backend. Will get activated as per schedule and send mails as configured. (You need to write your email logic in it!)


如果要在启动PC时发送邮件,那么这里的Web服务需要什么?以及为什么使用SQL Server?我没有看到任何背后的背景.

我同意Sandeep建议,创建一些Windows服务,该服务将发送邮件并自动将其启动.[不知道为什么投票失败]

甚至您也可以使用简单的C#控制台应用程序来完成此操作.创建一个控制台应用程序,它将发送邮件并将其设置在您的启动文件夹中.就这样.

我认为,您的要求与您无法表达的有所不同.如果这样不能回答您的问题,请重新输入您的问题.

谢谢!
If you want to send mail when start your PC then what is need the Web Services here ? And Why SQL Server ? I didn''t see any context behind that.

I am agree with Sandeep Suggestion, Create Some Windows Services which will send mail and start it as automatic.[ Don''t know why it was down voted ]

Even you can do it using a simple C# Console Application. Create a console application which will send mail and set it inside your start-up folder. That''s All.

I think, your requirement is something different which you are not able to express. If this does not answer your question please rephrase your question.

Thanks !


这篇关于如何使用Web服务向客户端发送自动电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆