Trick to getting System.Web.Mail to work?

  • Thread starter Thread starter JackBlack
  • Start date Start date
J

JackBlack

Using VS.Net 2k3, 2.0 Framework installed...

So, I'm sitting here trying to do a very basic SMTP mailer, and I'm
struggling with getting either System.Web.Mail (1.1) to work, or
System.Net.Mail (2.0) to work. A note on one of the KB articles says that
System.Net.Mail is a 2.0 class, so assuming that VS.Net 2K3 can't compile
for 2.0, I decide to try System.Web.Mail.

Well, no luck there either. The only classes available in System.Web are
three ASP Provider classes; no references to Mail, and COM objects relating
to Mail...

How does one get a mail message created and sent when VS.Net won't recognize
(or compile) for either of the two classes the documentation says should be
used for sending mail messages?!?!?!

Help! :)
Jack
 
JackBlack said:
Using VS.Net 2k3, 2.0 Framework installed...

So, I'm sitting here trying to do a very basic SMTP mailer, and I'm
struggling with getting either System.Web.Mail (1.1) to work, or
System.Net.Mail (2.0) to work. A note on one of the KB articles says that
System.Net.Mail is a 2.0 class, so assuming that VS.Net 2K3 can't compile
for 2.0, I decide to try System.Web.Mail.

Right. VS.NET 2003 is bound to .NET 1.1 and depends on this version of the
..NET Framework. It can only be used to create .NET 1.1 assemblies.
Well, no luck there either. The only classes available in System.Web are
three ASP Provider classes; no references to Mail, and COM objects
relating to Mail...

Maybe your project is lacking a reference to "System.Web.dll". Note that
this namespace is not supported on some older versions of Windows such as
Windows 98 -- if you are targetting these versions of Windows, you'll have
to use an alternative component:

Sending and receiving email
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=email&lang=en>
 
Back
Top