You need to add a reference to the System.Web.dll. The System.Web.Mail
namespace is defined inside that.
Open Solution Explorer, right click the References node of the project
tree, and select Add reference. From the list select System.Web.dll,
press Select and OK. Now you have added a reference to this class
library, and can use it in your project.
-Lenard
Jason Zhang wrote:
Hi all,
I have installed VS.net 2003 fully.
When I create a C# project and write a line:using System.Web.Mail;
the IDE complain that the namespace Mail does'nt exist in System.Web.
Why it happens? Dis I miss something?
Thank you!