.net: System.Web.Mail vs System.Net.Mail

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

I am not ready to overwrite all components using the deprecated System.Web.Mail , so I am curious to find out if any members of the community have any problems using .net 2.0?

+66
Sep 15 '08 at 16:47
source share
7 answers

System.Web.Mail is not a complete implementation of the .NET-based SMTP protocol. Instead, it uses the preexisting COM functionality in CDONTS. System.Net.Mail, by contrast, is a fully managed implementation of an SMTP client.

I had much less problems with System.Net.Mail, as it avoids COM-hell.

+95
Sep 15 '08 at 16:50
source share

The biggest problem with System.Net.Mail is that it does not have support for implicit SSL. Use System.Web.Mail until you need Implicit SSL support.

+7
Sep 06 2018-10-10T00:
source share

here are 2 sites that provide documentation and samples for

http://www.systemwebmail.com/

http://www.systemnetmail.com/

+5
Sep 16 '08 at 17:09
source share

Several times, when I came across this, I found that the methods and properties were almost the same. Changing the type of object was just what I had to do. There were one or two other little things, but they appeared with lines, and it was obvious what to do with Intellisense. I will vote to go with a fully managed solution, get away from cdonts as soon as possible. It is not even installed on server 03 and newer.

+4
Sep 15 '08 at 17:32
source share

System.Web.Mail is deprecated, but it should still work. You will be annoyed by warnings that they are outdated, but the functionality is still ongoing ... for now.

I agree with others that the conversion to System.Net.Mail was very trivial. I doubt that you will have to rewrite more than two or two.

+4
16 Sept. '08 at 13:57
source share

Yes, we had the same problem, and we decided not to update it. We did not see any problems, so you ignore warnings in order.

0
Sep 15 '08 at 16:49
source share

We implemented .netmail, in which it worked in the beginning, now we need a username and password. Therefore, we returned to webmail, as we are working normally.

0
Oct 20 '09 at 20:34
source share



All Articles