如何使用c#步骤在asp.net中自动发送电子邮件 [英] how to do automatic email sending in asp.net using c# with steps

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

问题描述

先生,我是krishna,

i已经创建了asp.net网络应用程序,我使用这个Asp.net 2.0,C#代码,Sql服务器数据库..在这个项目中我通常不得不使用邮件发送邮件的概念..我在特定日期得到了新的问题

i希望发送电子邮件以自动提醒客户..所以我不知道如何在自动电子邮件概念中这样做。 ..我需要一些帮助..我想知道如何做到这一点?和示例代码..请尽快帮助

hi sir am krishna,
i have created asp.net web application,i va use this Asp.net 2.0, C# code,Sql server database .. in this project normally i had to use mail concept to sent mails.. i got that new one problem for the particular date
i want to send email to remind the customer with automatically..so i have no idea to how this doing in automatic email concept... i need some help.. i want to idea how to do this way? and example codes..pls help as soon as possible

推荐答案

这是问题的自动化问题。



我会使用定期运行的SQL服务器作业来检查过期的数据事件并生成电子邮件并通过SQL邮件和SMTP发送。



这个或者在你的c#app中使用一个计时器做同样的事情。



你也可以写一个做同样事情的服务。



这里有很多选项。
Ah it is the automated issue that is the problem.

I would use a SQL server job that runs periodically to check for expired data events and generate the email and send it via SQL mail and SMTP.

Either that or use a timer in your c# app to do the same thing.

You could also write a service that does the same thing.

There are quite a number of option to this.


你需要运行一个服务(或应用程序)在服务器上(或定期在服务器上运行)监视您的数据源,并发送电子邮件。但请注意,许多主机 - 特别是价格较低的主机 - 会监控发送的电子邮件数量,并会使用任意限制来确定您的网站是否为垃圾邮件并禁用您的电子邮件。在继续之前请与您的主人核实。
You need to have a service (or an application) running on the server (or which is run on the server as regular intervals) which monitors your data source, and sends the emails. Be aware though, that many hosts - particularly the cheaper ones - monitor the number of emails sent and will use arbitrary limits to decide that your site is a spambot and disable your email. Check with your host before continuing.


您好,



此解决方案与您的问题有些相关...



http:// msdn.microsoft.com/en-us/library/ms182079%28v=sql.90%29.aspx [ ^ ]


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

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