.NET C#计划电子邮件代码 [英] .Net c# schedule email code

查看:65
本文介绍了.NET C#计划电子邮件代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想每1个小时或用户设置的时间发送一次邮件.我该怎么办,请提供一些资源....

解决方案

您可以创建一个简单的Windows服务来为您执行此操作.
简单Windows服务示例 [ C#调度程序 [ http://www. dotnetfunda.com/articles/article931-how-to-send-mail-automatically-for-every-five-minutes-using-csharp.aspx [ ^ ]



您可以在dot net中创建一个应用程序来发送电子邮件.并使用 Windows Task Scheduler 在给定的时间间隔内执行您的应用程序.

希望这些信息对您有帮助,

谢谢
-Amit.


I want to send mails every 1 hour or user set time. How can i do and please provide some sources....

解决方案

You can create a simple windows service that will do this for you.
Simple Windows Service Sample[^] would help you create a windows service.

Here is a simple scheduler sample - C# Scheduler[^].


Refer this:

http://www.dotnetfunda.com/articles/article931-how-to-send-mail-automatically-for-every-five-minutes-using-csharp.aspx[^]


Hi,

you can create one application in dot net to send an email. and use Windows Task Scheduler to execute your application on given time interval.

hope this information will help you,

thanks
-Amit.


这篇关于.NET C#计划电子邮件代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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