如何在mvc中创建Windows服务 [英] How to create windows services in mvc
本文介绍了如何在mvc中创建Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在mvc.how中创建了注册表单来创建Windows服务,请给我解决方案,我希望使用Windows服务向客户发送电子邮件我该如何发送。
解决方案
我想为您推荐一个不同的解决方案。那就是您可以使用 Sql server 来存储您的电子邮件详细信息,然后使用 sp_send_dbmail 向指定的收件人发送电子邮件。
检查更多信息: sp_send_dbmail(Transact-SQL)
然后,您可以将存储过程设置为 Sql Server代理作业,以便定期运行,如下所示。
创建和安排SQL Server中的作业
希望这对您有所帮助。 :)
Hi guys,
I created registration form in mvc.how to create windows services for that please give me solution and i want send email to clients using windows servies how can i send.
解决方案
I would like to suggest a different solution for you.That is you can use Sql server to store your email details and after that use sp_send_dbmail to Sends an e-mail message to the specified recipients.
Check for more info : sp_send_dbmail (Transact-SQL)
You can then set up the stored procedure as a Sql Server Agent job to run at regular intervals as shown below.
Create and Schedule a Job in SQL Server
Hope this will help to you. :)
这篇关于如何在mvc中创建Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文