On Mon, 2004-07-19 at 08:03, Israel Fdez Cabrera wrote:
> Hi all, this is my first message to the list, and I'm not sure if this is the 
> right list for this question but, here it is any way and U tell me if I'm in 
> the wrong place :)
> 
> I just download and installed Mono 1.0 in my SuSE 9.1 Box. I'm writing a test 
> application with Monodevelop, the code for this application was copied from a 
> monodoc help page and is the following:
> 
> --------------------------------------------------
> // project created on 19/07/2004 at 11:03
> using System;
> using System.Web.Mail;
> 
> class SSmtp
> {
>       public static void Main(string[] args)
>       {
>               System.Console.Write("Prueba");
>               /*MailMessage message = new MailMessage();
>       message.From = "[EMAIL PROTECTED]";
>       message.To = "[EMAIL PROTECTED]";
>       message.Subject = "Hello, E-Mail world!";
>       message.Body = "This is a test mail.";
> 
>       SmtpMail.SmtpServer = "10.10.1.2";
>       SmtpMail.Send (message);*/
>       }
> }
> ----------------------------------------------------------
> 
> when compile, I get the following error:
> 
> line 3: The Namespace 'System.Web.Mail' can not be found (missing assembly 
> reference?) (CS0246)
> 

YOu need to add the reference to System.Web.dll - in MonoDevelop you
achieve this by right clicking on references in the left hand "SOlution
View" and selecting "Edit References" in the menu, then tick the
System.Web checkbox.

> I visit the go-mono web site and consulted the class libraries and 
> System.Web.Mail is implemented in a 98%.
> 
> I'll appreciate any help, link or reference.
> Best [EMAIL PROTECTED]
> Israel

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to