每晚12:00自动发送电子邮件 [英] automatically send email every night 12.00 am

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

问题描述

我开发了一个网站,因为在事件触发时我发送了邮件,但我需要每天晚上12:00自动发送邮件.可以帮我任何人吗
谢谢你...........

i developed one website, in that i sent mails when event fired but i need to send mails every day night 12.00 am automatically. can please help me anybody
thank u...........

推荐答案

^ ]是最佳选择.

使用C#Windows服务结合数据库电子邮件记录PART – II异步发送自动电子邮件 [
Windows Service[^] is the best choice.

Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I[^]
Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART – II[^]


您需要允许托管网站或数据库的服务器执行此操作-网页无法执行此任务.
You need to allow the server that hosts the website or the database to do this - a web page would not be reliable for such a task.


如果设计正确,网站应该没有没有客户端请求即可触发的代码,因此,我建议您不要从网站上执行此操作.您需要做的是创建一个简单的应用程序,该应用程序既可以作为Windows服务运行,也可以作为Windows Task Scheduler触发的独立应用程序运行.
If properly designed, a website should have no code that runs without a request from the client being the trigger, so I would suggest that you don''t want to do this from a website. What you need to do is create a simple application which can either be run as a windows service, or as a standalone application triggered by the Windows Task Scheduler.


这篇关于每晚12:00自动发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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