使用c#在asp.net中每天发送电子邮件 [英] Sending Emails on daily basis in asp.net using c#

查看:91
本文介绍了使用c#在asp.net中每天发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,我在使用c#在asp.net发送电子邮件时遇到问题。我要求是在特定时间每天向选定的电子邮件发送电子邮件e:g每天下午5点。我正在做同样的事情使用Timer Concept在global.asax(Application_start Event)中编写代码。但问题是这是工作1到2天,之后不发送电子邮件。所以请帮助我。如有任何疑问,请随时发布。等待你的快速回复。

Dear all,I am facing problem while sending email in asp.net using c#.my requirement is to send emails on daily basis to selected emailids at a particular time e:g Everyday at 5pm.I am doing the same thing by writing the code inside global.asax (Application_start Event) using Timer Concept.But the problem is that this is working for 1 to 2 days and after that not sending Emails.So Please help me out.For any queries please feel free to post.Waiting for your quick response.

推荐答案

推荐此链接



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



创建SQL Server代理作业 [ ^ ]



如何安排作业以便sql查询每天运行 [ ^ ]



如何在SQL代理作业中执行存储过程 [ ^ ]



问候.. :)
Refer this link

SQL SERVER – 2008 – Configure Database Mail – Send Email From SQL Database[^]

Creating SQL Server Agent Jobs[^]

How to schedule a job for sql query to run daily[^]

how to execute a stored procedure in a SQL Agent job[^]

Regards..:)


使用Quartz调度程序 http://quartznet.sourcef orge.net/ [ ^ ] ..
Use Quartz scheduler http://quartznet.sourceforge.net/[^]..


这篇关于使用c#在asp.net中每天发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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