Not sure why you don't simply use System.Web.Mail here to connect to
Exchange server using smtp?
The Mailmessage class makes it possible to select NTLM as authentication
protocol when connecting to Exchange.
Here is how you could do this:
MailMessage mail = new MailMessage();
.....
mail.Fields.Add ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e",
"2"); // select NTLM (2) authentication
// add user and password
mail.Fields.Add (http://schemas.microso ft.com/cdo/configuration/sendusername",
"usernameHere") ;
mail.Fields.Add (http://schemas.microso ft.com/cdo/configuration/sendpassword",
"userPwd");
SmtpMail.Send( mail );
Willy.
"Alexander Gnauck" <gn****@ag-software.de> wrote in message
news:2p******** ****@uni-berlin.de...
Hello,
found a Java Library at http://jcifs.samba.org/ and managed c# code from
Mono. So i extended this code a bit and it works pretty well. Similar code
is already in the Framework. Why does Microsoft seal this classes? Much
easier to develop with Mono here.
Alex