使用C#ASP.NET在邮件中自动添加功能 [英] Auto add functionality in mail using C# ASP.NET

查看:88
本文介绍了使用C#ASP.NET在邮件中自动添加功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I want to add email functionality to my blog using C# ASP.NET. But the problem is I want to add auto add functionality on click event of particular blog.
(So that file can be automatically added to the email.) How to do that, please give some valuable suggestions.





说明:假设我有网站(包含博客)每个博客后都有一个邮件选项。因此,如果有人点击邮件选项,那么该博客的内容将通过电子邮件自动附加。内容可以是图像文件,pdf,doc任何东西。

我想知道如何使用C#ASP.NET做到这一点。



explanation: Suppose i have website (contains blog) and there is a mail option after every blog. So if some click on mail option then the content of that blog gets auto attached with email. content can be a image file, pdf, doc anything.
I want to know how to do that using C# ASP.NET.

推荐答案

您可以在.NET FCL中找到所需的一切。请从这里开始:

http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient%28v=vs.110%29.aspx [ ^ ],

http:// msdn.microsoft.com/en-us/library/system.net.mail.mailmessage%28v=vs.110%29.aspx [ ^ ]。



我希望你的ASP.NET托管为你提供对SMTP服务器的访问;我从来没有听说过没有此功能的主机套餐。



-SA
All you need can be found in .NET FCL. Please start here:
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage%28v=vs.110%29.aspx[^].

I hope your ASP.NET hosting provides you with the access to a SMTP server; I never heard of hosting packages without this feature.

—SA


这篇关于使用C#ASP.NET在邮件中自动添加功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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