Console applications don't have a reference to System.Web... You will need to
add this reference yourself.
To add the System.Web DLL:
Click the PROJECT menu & navigate to ADD REFERENCES
Find 'System.Web' DLL, double-click it & click OK
Now, your 'Imports System.Web.Mail' at the top will not be showing the
underline anymore.
I hope this helps.
"Greg Chu" wrote:
Hi, I created a console applicaton and try to import system.web.mail. But I
do not see it. after system.web I can only see 3 choices for
AspNetHosting.....
But I downloaded a sample console app. from the web and I do not have any
problem.
Any idea what am I doing wrong?
Thanks!
Greg