Anything not part of corlib you have reference explicitly during
build. I think the SDK would be the best to consult regarding the
authentication.
regards,
Jonel
On May 6, 2005, at 12:37 PM, John Osborne wrote:
Thanks, that was magic!
What just happened there though? I thought if I did a "using
System.Web" it was automatically referenced, but this doesn't
appear to be the case...
Any idea about the password/authentication thing?
-John
Jonel Rienton wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
try mcs -r System.Web minitest.cs
assuming your code's filename is minitest.cs
regards,
- -----
Jonel Rienton
http://homepage.mac.com/jrienton
Software Developer, *nix Advocate
On May 6, 2005, at 10:24 AM, John Osborne wrote:
I'm running into trouble with the following mini-test program:
using System;
using System.Web;
using System.Web.Mail;
public class SmtpTest {
public static void Main (String[] args) {
SmtpMail.SmtpServer = "foo.northwestern.edu";
SmtpMail.Send ("[EMAIL PROTECTED]","j-
[EMAIL PROTECTED]","Hello, E-Mail world!","This is a test
mail.");
}
}
because I get the following compilation errors:
SmtpTest.cs(3) error CS0234: The type or namespace name `Mail'
could not be found in namespace `System.Web'
SmtpTest.cs(3) error CS0234: The type or namespace name `Mail'
could not be found in namespace `System.Web'
SmtpTest.cs(3) error CS0246: The namespace `System.Web.Mail' can
not be found (missing assembly reference?)
Two questions:
1) I'm running mono on the Mac, did the System.Web.Mail
namespace never get ported to the Mac and hence the compilation
errors?
2) How do I authenicate against the SMTP server with a password?
It looks like on .NET there are some extra fields you can add
but this doesn't appear to be the case on mono.
-John
--
John Osborne
Senior Bioinformatics Analyst
Robert H. Lurie Cancer Center
Northwestern University
676 N. St. Clair Street, Suite 1216C
Chicago, Illinois 60611
[EMAIL PROTECTED]
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.0 (Build 2001)
iQA/AwUBQnudc+AwOVAnbsGCEQKD+ACeJpPpk0W7owMwDWL80X3WsujPVEkAoK+n
CRLDor7e+9tMcm0/arW+vwRK
=SOa1
-----END PGP SIGNATURE-----
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
--
John Osborne
Senior Bioinformatics Analyst
Robert H. Lurie Cancer Center
Northwestern University
676 N. St. Clair Street, Suite 1216C
Chicago, Illinois 60611
[EMAIL PROTECTED]
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list