[Mono-list] Testing SmtpSend
[A]ndy80 - Andrea Grandi
andy80@ptlug.org
11 Jun 2002 09:25:59 +0200
--=-8rEeyr8FNSJNhVUmIOKn
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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 =3D "andy80@ptlug.org";
string to =3D "andy80@ptlug.org";
string subject =3D "E-mail inviata da C#";
string body =3D "<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=20
send_mail.cs(12) error CS0246: Cannot find type `SmtpMail'
Error: Compilation failed
RESULT: 1
How can I solve this?
Thank you,
--=20
~ Piccoli Software
=B0 =B0 http://www.piccolisoftware.cjb.net
/V\ piccolisoftware@pegacity.it
// \\
/( )\ [A]ndy80 on #bluvertigo e #pistoia
^`~'^ andy80@ptlug.org - http://www.ptlug.org
GPG Key: http://www.ptlug.org/andy80_key.asc
--=-8rEeyr8FNSJNhVUmIOKn
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA9BaYHlVyeRNRP2iURAlMzAKDN/+3x7v0V4KjkKjzfWUJNe9P1LACgk1B0
Cw8OeYhOhNf2KEtSulJChPg=
=v7Lc
-----END PGP SIGNATURE-----
--=-8rEeyr8FNSJNhVUmIOKn--