如何在应用程序未运行时发送电子邮件? [英] How to send email when application is not running?

查看:92
本文介绍了如何在应用程序未运行时发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在申请用户访问我们的软件,然后他们自己注册3天的试用期。现在要求在试用期结束前发送电子邮件。



但问题是我不太确定这个应用程序将被用户浏览直到整个月。如果不是每天打开,也许邮件无法发送。即使应用程序没有运行或用户没有登录,我有什么方法可以发送它。



我使用的是Vs 2008和sql server 2008r2。

我需要一些指导,信息或关于我如何实现这一点的链接。

提前谢谢。

I am working on application in which user visits our software and then they register themselves for 3odays trial period.Now the requiement is to send email before trial period finish.

But the problem is i am not so sure that this appliction will be browsed by users till the whole month. If not opened on everyday, perhaps the mail can not be sent. Is there any way i can send it even if application is not running or user do not login.

I am using Vs 2008 and sql server 2008r2.
I need some guidance, info or links about how I can achieve this.
Thanks in advance.

推荐答案

你应该配置数据库邮件 - 发送来自SQL数据库的电子邮件 [ ^ ]。您还可以安排工作 [ ^ ]定期发送邮件。

请参考以下链接:

数据库邮件配置向导 [ ^ ]

SQL SERVER - 2008 - 配置数据库邮件 - 从SQL数据库发送电子邮件 [ ^ ]



并检查如何:创建作业(SQL Server Management Studio) [ ^ ]





希望它有所帮助!

--Amit
You should Configure Database Mail – Send Email From SQL Database[^]. You can also Schedule a Job[^] to send mails periodically.
Refer the links below:
Database Mail Configuration Wizard[^]
SQL SERVER - 2008 - Configure Database Mail - Send Email From SQL Database[^]

And also check How to: Create a Job (SQL Server Management Studio)[^]


Hope it helps!
--Amit


你好,



为什么要在客户的软件中添加电子邮件发送代码。相反,您可以在服务器上存储注册日期并创建一个调度程序,该调度程序将检查是否有任何客户即将完成试用期,然后从服务器向他们发送电子邮件。



这对你来说会更容易。



祝你好运
Hi,

Why you are adding email sending code at client''s software. Instead you can store registration date on the server and create one scheduler that will check if any of the customer is about to complete trial period then send them email from your server.

That would be easier for you.

best luck


这篇关于如何在应用程序未运行时发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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