延迟在C#中发送电子邮件, [英] Delaying the sending of emails in C#

查看:139
本文介绍了延迟在C#中发送电子邮件,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在编写一个功能发送电子邮件提醒客户在几天内x次,只是不知道是否有可能延迟发送类似于如何在Outlook(新邮件>选项按钮>不要在电子邮件交付前)在C#。

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?

推荐答案

一种可能性是创建一个计划任务处理待处理的邮件运行的服务。你可能会存储待定邮件在SQL数据库。 (戴维详细介绍这一点)

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)

本文着眼promissing,如果你想避免一个'真正的'服务

This article looks promissing if you would like to avoid a 'real' service

HTTP://www.$c$cproject.com/KB/ ASPNET / ASPNETService.aspx

这篇关于延迟在C#中发送电子邮件,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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