.NET:System.Web.Mail和VS System.Net.Mail [英] .net: System.Web.Mail vs System.Net.Mail

查看:1233
本文介绍了.NET:System.Web.Mail和VS System.Net.Mail的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑转换,我已经从.NET 1.1继承到.NET 2.0的项目。我很担心,主要的警告是,它要我从 System.Web.Mail和切换到使用 System.Net.Mail

I am considering converting a project that I've inherited from .net 1.1 to .net 2.0. The main warning I'm concerned about is that it wants me to switch from System.Web.Mail to using System.Net.Mail.

我不准备重新编写所有使用该组件过时 System.Web.Mail和,所以我很好奇,想听到的话,任何一个社会成员都有使用它在.NET 2.0的问题?

I'm not ready to re-write all the components using the obsolete System.Web.Mail, so I'm curious to hear if any community members have had problems using it under .net 2.0?

推荐答案

System.Web.Mail和是SMTP协议不是一个完整的.NET本地实现。相反,它使用CDONTS的pre-现有的COM功能。 System.Net.Mail,相反,是一个SMTP客户端的全面管理的实施。

System.Web.Mail is not a full .NET native implementation of the SMTP protocol. Instead, it uses the pre-existing COM functionality in CDONTS. System.Net.Mail, in contrast, is a fully managed implementation of an SMTP client.

我已经与System.Net.Mail少得多的问题,因为它避免了COM地狱。

I've had far fewer problems with System.Net.Mail as it avoids COM hell.

这篇关于.NET:System.Web.Mail和VS System.Net.Mail的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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