Windows service and System.Web.Mail
Ok I've started a Windows Service using C# and now I want to use the Email objects from System.Web.Mail but when I do a
using System.Web.Mail I get the following error:
"The type or namespace name 'Mail' does not exist in the class or namespace 'System.Web' (are you missing an assembly reference?)"
[338 byte] By [
valdair] at [2007-11-18 21:26:58]

# 1 Re: Windows service and System.Web.Mail
Hi !
You have to add a reference to System.Web.dll
Try going to Menu: Project->Add Reference
Browse the .net tab and select it.
Now the error should disappear.
# 3 Re: Windows service and System.Web.Mail
Primarily for other users who may read this thread. The current version of the MailMessage (and related SMTP classes) do NOT support servers which require authentication.
Just a heads up so people dont go crazy...