如何安排电子邮件? [英] How to schedule email?

查看:111
本文介绍了如何安排电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用asp.net(VB)实现一个网站CRM。需要系统每天向员工发送特定日期的电子邮件。这必须作为时间表自动完成。我该如何实现呢?尽可能提供必要的代码。谢谢

解决方案

我可以为您提供一种快捷方式。

我相信你必须有一张桌子,你可以存储收件人的详细信息和电子邮件发送时间(我的意思是当你想发送电子邮件时)。创建一个控制台应用程序,它将通过检查电子邮件发送时间从表中获取行。然后你可以逐个发送电子邮件。发送一封成功邮件或发送电子邮件失败后,请更改表格中的行状态。这样您就可以限制重复的电子邮件发送。应用程序准备就绪后,您可以将其放在服务器上并从Windows调度程序中触发它。您可以根据需要计划设置信誉时间。



使用Windows服务也可以做同样的工作,但我喜欢从胜利触发的控制台调度器。

I am implementing a website- CRM using asp.net(VB). There is a requirement that the system should send emails daily for some particular days to employees. This must be automated as a schedule. How can I implement this ? Provide the necessary code if possible. Thanks

解决方案

I can provide you one quick way.
I believe you must be having a table where you store the recipients details and email sending time(I mean when you want to send the emails). Create ones console application which will fetch the rows from the table by checking the Email sending time. Then you can send he emails one by one. After one successful mail sent or failure on sending emails, do change the row status on the table. That way you can restrict duplicate email sending. Once the application is ready, you can put it on the server and trigger it from the windows scheduler. You can plan set the reputation times as needed.

The same work you can do using a windows service as well, but I like the console to be triggered from the win scheduler.


这篇关于如何安排电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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