S
Steven
Okay, what did I do wrong. system.web is present, but not
system.web.mail.
Any ideas?
system.web.mail.
Any ideas?
Steven said:Okay, what did I do wrong. system.web is present, but not
system.web.mail.
Any ideas?
Steven said:I've installed .net framework sdk. I want to be able to e-
mail from within an application. The examples that I'm
seeing call for "imports system.web.mail". When I get to
system.web there is no mail namespace to be appended. Is
that about as clear as mud?
Steven said:At the risk of being really stupid, isn't that exactly
what the imports statement does?
-----Original Message-----
No, not at all - at least, the equivalent in C# doesn't. That makes the
*namespace* System.Web available so you don't need to write full
typenames out. That's not the same thing as referencing the *assembly*
System.Web.dll, which happens to contain classes in System.Web and
System.Web.Mail (amongst others).
Assuming you're using VB.NET from Visual Studio .NET, go to the
solution explorer and you'll see an item called "References" under your
project. Right-click that and select "Add reference". Add a reference
to System.Web.dll and all should be well.
--
Jon Skeet - <[email protected]>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.