创建用于自动发送电子邮件的Web服务 [英] Creating a web service for auto sending Email

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

问题描述

大家好,

我在互联网上看到了许多文章,博客和代码段,它们解释了如何使用Web服务以拨号方式发送电子邮件.但是我不确定仍然如何实现呢?我想知道Web服务是如何工作的?就像Web服务仅在有人访问我的网站时才起作用吗?不能发生这样的情况,即使一整天,如果没有人点击我的网站,任务仍然会继续存在任何问题?此外,我会每天早上11:00定期将电子邮件发送给我的客户.因此,我该如何使用Web服务但不使用任何SQL Server东西或Windows Task Scheduler来做到这一点.我只想要一个纯网站解决方案.

Hi all,

I have seen many articles and blogs and code snippets on internet which explain how to send email on dialy basis using a web service. However I am not sure still how to achieve it ? I want to know that how a web service acts ? Is it like web service works only when someone once hits my website ? Cant it happen that even for the whole day if no one hits my website still the task continues with any problem ?? Moreover I send daily email to my clients at 11:00 am on regular basis. So how can i do it using web service but not any sql server thing or windows task scheduler. I just want a pure website solution to this. Is it even possible ???

推荐答案

您需要和谈论的不是Web服务,它是 Windows服务!

示例:发送自动电子邮件警报的简单Windows服务 [ Windows服务应用程序简介 [ ^ ]

使用它,无需与任何用户进行任何交互,您就可以配置为从服务器发送电子邮件.
What you need and are talking of is not Web service, it''s Windows Service!

Sample: Simple Windows Service which sends auto Email alerts[^]
MSDN: Details about Windows Service: Introduction to Windows Service Applications[^]

Using it, without any interaction with any user, you can configure to send email from your server.


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

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