Hello

I'm a new mono user. I'm doing some tests with mono. In particular I'm
trying to use SmtpSend.

When I try to compile this code:

using System;
using System.Web.Mail.SmtpMail;

public class AG_SendMail
{
        public static void Main()
        {
                string from = "[EMAIL PROTECTED]";
                string to = "[EMAIL PROTECTED]";
                string subject = "E-mail inviata da C#";
                string body = "<html><body>E-mail inviata da C# - con
successo</body></html>";
                SmtpMail.Send(from, to, subject, body);
        }
}

I get this error:

[shady@piccoli cs]$ mcs send_mail.cs 
send_mail.cs(12) error CS0246: Cannot find type `SmtpMail'
Error: Compilation failed
RESULT: 1

How can I solve this?

Thank you,

-- 
   ~            Piccoli Software
  � �   http://www.piccolisoftware.cjb.net
  /V\      [EMAIL PROTECTED]
 // \\
/(   )\  [A]ndy80 on #bluvertigo e #pistoia
 ^`~'^  [EMAIL PROTECTED] - http://www.ptlug.org

GPG Key: http://www.ptlug.org/andy80_key.asc

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to