Visual Studio .NET-使用C#在asp.net中自动发送电子邮件 [英] Visual Studio .NET - automatic email sending in asp.net using c#

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

问题描述

如何在asp.net中发送自动电子邮件警报?

how to send auto email alerts in asp.net?

推荐答案

在CP中进行以下讨论:
使用asp.net应用程序发送自动电子邮件 [ ^ ]
如何在asp.net中自动发送电子邮件在步骤中使用c# [ ^ ]
Go through the following discussions in CP:
Sending automatic email using asp.net applications[^]
how to do automatic email sending in asp.net using c# with steps[^]


Windows服务 [ ^ ]是最佳选择.
参考更多: http://msdn.microsoft.com/en-us/library/d56de412(VS.80).aspx [ ^ ]

使用C#Windows服务结合数据库电子邮件记录PART – II异步发送自动电子邮件 [任务计划程序(Windows) [ ^ ]
关于任务计划程序与Windows服务的比较 [ SQL Server作业 [ SQL数据库邮件-从SQL Server发送电子邮件 [ SQL数据库邮件-通过电子邮件发送T-SQL结果 [使用ASP.NET模拟Windows服务以运行计划的作业 [ CodeProject答案 [ ^ ]来回答类似的问题.
Windows Service[^] is the best choice.
Refer more: http://msdn.microsoft.com/en-us/library/d56de412(VS.80).aspx[^]

Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I[^]
Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART – II[^]

Alternatively, you may use Task Scheduler (Windows)[^]
A comparison about Task Scheduler vs Windows Service[^]

Or use SQL Server jobs[^]
SQL Database Mail - Send Emails from SQL Server[^]
SQL Database Mail - Send T-SQL Results by Email[^]

BTW found a nice article in CP(Nice article)
Simulate a Windows Service using ASP.NET to run scheduled jobs[^]

Check out CodeProject Answers[^] for similar question asked before.


如果您手边有SMTP服务器,则可以使用
You can use the
System.Net.Mail

命名空间.


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

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