如何在30天后发送自动电子邮件 [英] how to send automatic email after 30 days

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

问题描述

您好b $ b



我的asp.net应用程序在共享主机服务器上运行。



,我想向我的用户发送自动发送电子邮件。例如:谁还有30天的时间到他们的帐户到期。



我知道如何发送电子邮件,但我怎么能自动发送,没有任何用户交互?



我在哪里写代码?



任何建议?

Hi

My asp.net application is running on a shared hosting server.

and I want to send automatic email to my users. for example: who has 30 days left to their account expiry.

I know how to send email but how can I send it automatically, without any users interaction??

where shall I write the code??

any suggestions??

推荐答案

查看此链接



特别是几天后的特定电子邮件 [ ^ ]



问候..
See this link

Sheduled emails in particular days later[^]

Regards..


您可以在此处尝试使用Quartz Scheduler for .NET:

http://quartznet.sourceforge.net/ [ ^ ]

它易于使用,只需添加在您的应用程序中的几个dll,cr吃石英简单工作,检查你的数据库是否有任何符合你的发送电子邮件条件的记录,就是这样。

为我工作:)

看看,好运气
You could try Quartz Scheduler for .NET here:
http://quartznet.sourceforge.net/[^]
Its easy to use, just add a couple of dlls in your application, create a Quartz Simple Job that checks your database for any records that meet your "Send Email" condition and that's it.
Worked for me :)
Take a look, good luck


编写一个控制台应用程序来发送电子邮件,在服务器中,您可以安排使用Windows任务计划运行它。安排任务在午夜运行应用程序,应用程序将发送电子邮件。
write a console application to send emails and, in server you can schedule to run it using Windows Task Schedular. Schedule the task to run the application in midnight and application will send the emails.


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

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