如何在每天午夜12点钟自动发送电子邮件 [英] How to send email automatically everyday at midnight 12'0 clock

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

问题描述

任何人都可以告诉我如何每天午夜12点钟发送电子邮件。



如何做到这一点。请帮我

Can any one tell me how to send email everyday at midnight 12'0 clock.

How to do this. please help me

推荐答案

为此你必须创建一个aspx页面并通过代码页面后面,你必须在页面加载上写一个函数来发送邮件...

创建此页面后,您必须在IIS服务器上映射此页面,以便在您需要的时间自行执行...
for this you will have to create a aspx page and through code behind page, you will have to write a function on page load to send the mails...
and after creating this page, you will have to map this page on IIS server for self execution on your required time...


您可以通过运行 Windows Scheduler 来完成此操作。它只是一个 Window Console 应用程序,它将在您的服务器中进行安排。在应用程序内部,写​​下您发送电子邮件的代码。



您可以选择时间(何时运行)和频率(何时再次重复) Scheduler
You can do this by running a Windows Scheduler. It is nothing but one Window or Console App, which will be scheduled in your Server. Inside the app, write you email sending code.

You can select the Time(when to run) and Frequency(when to repeat it again) for the Scheduler.


你可以借助windows Scheduler来做到这一点,asp .net无法提供这个功能类型使另一个项目窗口或控制台应用程序。创建一个exe文件,因为Window Scheduler使用exe文件。所以它必须exe文件窗口或控制台应用程序。如何使Windows Scheduler检查此链接以便更好地理解 http:// www.techsupportalert.com/content/how-schedule-programs-run-automatically-windows-7.htm [ ^ ]
you can do this with the help of windows Scheduler, asp .net can't provided this type of functionality make a another project windows or console application. Make a exe file because Window Scheduler work with exe file. so it must exe file windows or Console application. How to make a Windows Scheduler check this link for better understanding http://www.techsupportalert.com/content/how-schedule-programs-run-automatically-windows-7.htm[^]


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

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