System.web.mail vs system.net.mail

What is the difference between System.Web.Mail and System.Net.Mail ?

+7
source share
2 answers
  • System.Web.Mail was in the .NET Framework v1.1

  • System.Net.Mail is in the .NET Framework version 2.0.

They are both used for the same purpose. If you use System.Web.Mail , it only shows a warning, stating that it is deprecated. It still works as expected.

If you really use a higher version (2.0 or later) of the .NET platform, use System.Net.Mail.

+13
source

The first line in MSDN for the System.Web.Mail :

Classes in this namespace are deprecated. Use the System.Net.Mail namespace instead

+12
source

All Articles