问题描述
我们正在撰写一个功能,可以在x天内向客户发送提醒电子邮件,只是想知道是否可以延迟发送电子邮件,类似于Outlook中的操作(新邮件>选项按钮>不要有没有人知道这样做的方法?
$ b
一种可能性是创建一个在计划的任务处理'待处理'邮件上运行的服务。您可以将挂起的邮件存储在SQL数据库中。 (Dave详细说明)
如果您想避免真实服务,则此文章似乎有所推论
http://www.codeproject.com/KB/aspnet/ASPNETService.aspx
We are writing a feature to send a reminder email to customers in x number of days and just wondered if it was possible to delay the sending of the emails similar to how you can in Outlook (New Mail > Options button > Do not deliver before) in C#.
Does anyone know of a way of doing this?
One possibility is to create a service that runs on a scheduled task processing 'pending' mail. You might store the pending mail in a SQL Database. (Dave details this)
This article looks promissing if you would like to avoid a 'real' service
http://www.codeproject.com/KB/aspnet/ASPNETService.aspx
这篇关于延迟发送电子邮件在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!