根据特定规则每天发送自动电子邮件 [英] send automatic emails every day accourding to specific rule
本文介绍了根据特定规则每天发送自动电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想每天向超过时间的所有客户发送电子邮件2天,并用它添加他们的信息......谁可以帮助plz
解决方案
预定程序的步骤: -
1.制作一个调度程序(窗口服务)
//一些代码
public void StartService()
{
计时器计时器= 新计时器();
timer.Interval = 86400000 ; // 24小时
timer.Elapsed + = new ElapsedEventHandler(timer_Elapsed);
timer.Start();
// FireProcess();
// SendServiceFiringMail();做一些你想要的功能
}
2. C: \ WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe C:\ MyService.exe
它发射24小时。
i want to send emails every day to all client who exceed the time by 2 days and add their information with it ... who can help plz
解决方案
Steps For Scheduler:-
1. Make a scheduler (window service)
//Some code
public void StartService() { Timer timer = new Timer(); timer.Interval = 86400000; //for 24 hours timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); timer.Start(); // FireProcess(); // SendServiceFiringMail(); Make some funtion which you want }
2. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe C:\MyService.exe
It fires 24 Hours.
这篇关于根据特定规则每天发送自动电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文