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
.
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?
SmtpClient Class (System.Net.Mail)Allows applications to send email by using the Simple Mail Transfer Protocol (SMTP). The SmtpClient type is obsolete on some platforms and not recommended on others; for more information, see the Remarks section.
The System. Net.Mail classes are contained in the "System. dll" file. Make sure you have a reference to System listed under References in your project.
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.
I've had far fewer problems with System.Net.Mail as it avoids COM hell.
Biggest issue with System.Net.Mail is that it has no support for Implicit SSL. Use System.Web.Mail until you don't have a need for Implicit SSL support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With