[Mono-list] System.Web.Mail not found!

Tom Larsen tomar@apricot.com
Mon, 19 Jul 2004 09:39:22 -0700 (PDT)


What commands are you using to compile this (assuming you uncomment out
the block in question)?  You really do need to add a reference to
System.Web.dll to use MailMessage.

Tom Larsen

On Mon, 19 Jul 2004, 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 = "israel@segurmatica.com";
>      	message.To = "israel@segurmatica.com";
>      	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)
>
> 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 reg@rds
> Israel
> --
> Israel Fdez Cabrera
> Usuario Linux: 270292
> Ciudad La Habana, Cuba.
> Segurmatica.
> israel@segurmatica.com
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>