自动发送电子邮件 [英] send emails automatically

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

问题描述

嗨...

我的项目是每天,每周和每月发送邮件.
如果用户给定日期和日期,则应在该日期之间发送邮件

如果是每周,则用户选择必须发送邮件的日期,并且应该在该天发送邮件.
如果是每月,则用户应选择月份发送邮件.


hi...

my project is to send mails daily, weekly and monthly.
if the user gives from and to date mail should be send between that dates

if it is weekly user selects day on which he has to send mail and mail should be sent on that day.
if it is monthly user selects month mails should be sent through out the month.


thanks in advance..

推荐答案

您需要 Windows服务.

示例:发送自动电子邮件警报的简单Windows服务 [ MSDN:Windows服务应用程序简介 [ ^ ]
You need Windows Service for this.

Sample: Simple Windows Service which sends auto Email alerts[^]
Details about Windows Service: MSDN: Introduction to Windows Service Applications[^]


这可能会对您有所帮助.

http://www.dotnetspider.com/forum/312163- Scheduled-execution-particular-code-using-asp.net.aspx [ http://bradkingsley.com/sending-email-from-asp-net -4-c-sample-code/ [
This may help you.

http://www.dotnetspider.com/forum/312163-Scheduled-execution-particular-code-using-asp.net.aspx[^]

Use this to schedule execution of your code.

http://bradkingsley.com/sending-email-from-asp-net-4-c-sample-code/[^]

Use this code for sending email with ASP.NET.


^ ]


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

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