如何使用cq中的调度程序使用cq中的linq发送电子邮件 [英] How to send an Email using scheduler in mvc3 using linq in c#
本文介绍了如何使用cq中的调度程序使用cq中的linq发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须编写一个调度程序,在特定时间自动向客户端发送电子邮件。
有人可以帮我写出调度程序吗?因为m不知道该怎么做。我使用linq在MVC3中使用c#。
谢谢
I have to write a scheduler which sends an email automatically to the clients on a particular time.
Can anybody please help me out to write that scheduler? Because m having no idea how to do this. I am using c# in MVC3 using linq.
Thanks
推荐答案
Hai,
还有另一种解决方案
创建一个控制台应用程序并编写代码构建它....你将在应用程序的bin文件夹中获得一个.exe文件并将该.exe文件提供给windows schedular .....
Hai,
There is another solution
Create a console application and write your code build it....you will get a .exe file in bin folder of your application and give that .exe file to windows schedular.....
你有两个选择:
1)正如Ranjithkumar54(解决方案1)发布的那样,你可以构建一个控制台应用程序并执行它通过Windows Scheduler。
2)你可以创建一个Windows服务应用程序并以这种方式运行。
你不应该试图运行Web应用程序的预定应用程序,因为Web应用程序是一个简单的请求/响应系统。无人参与的进程不应在此环境中运行。
You have two options:
1) As already posted by Ranjithkumar54(Solution 1), you could build a console application and execute it through Windows Scheduler.
2) You could create a Windows Service application and run it that way.
You should not try to run scheduled applications from a web application because a web application is a simple Request/Response system. Unattended processes are not meant to be run in this environment.
这篇关于如何使用cq中的调度程序使用cq中的linq发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文