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.
impact79 at 2007-11-9 1:38:55 >
# 2 Re: Windows service and System.Web.Mail
Thank you so much that worked perfectly
valdair at 2007-11-9 1:39:58 >
# 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...
TheCPUWizard at 2007-11-9 1:41:07 >
# 4 Re: Windows service and System.Web.Mail
You are talking about SMTP authentication correct?
valdair at 2007-11-9 1:42:02 >
# 5 Re: Windows service and System.Web.Mail
Correct.
TheCPUWizard at 2007-11-9 1:43:01 >