I'm trying to begin working on a program that emails using the SmtpMail class but in the example text provided by msdn they use System.Web.Mail ; I added the code verbatim to a console application and the system.web.mail ; is giving me an error saying:
I am confused why Mail is not found in the namespace System.Web? I am using VS2010 professional if that makes a difference. In the threads I'm reading about this it keeps referencing windows 2000 which is obviously older and I know things continuously change with new versions of windows and VS. I'm just curious what I should do at this point?
Thanks for any suggestions.
Code:
Error 1 The type or namespace name 'Mail' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Thanks for any suggestions.
Comment