[Mono-bugs] [Bug 71367][Nor] New - Mono not handling MailMessage.Fields.Add request correctly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 17 Jan 2005 19:29:30 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sergio.vera@telefonica.net.

http://bugzilla.ximian.com/show_bug.cgi?id=71367

--- shadow/71367	2005-01-17 19:29:30.000000000 -0500
+++ shadow/71367.tmp.3264	2005-01-17 19:29:30.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 71367
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Windows XP PRO
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sergio.vera@telefonica.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono not handling MailMessage.Fields.Add request correctly
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When Using System.Web.Mail Mailmessage and SmtpMail classes to send emails
+to a server requiring authentication, mono is unable to authenticate the
+user correctly against the server.
+
+Steps to reproduce the problem:
+1. //Fill basic email info:
+   MailMessage Mailer = new System.Web.Mail.MailMessage();
+   Mailer.From = "origin@someserver.com";
+   Mailer.To = "destination@someotherserver.com";
+   Mailer.Subject = "subject";
+   Mailer.Body = "body of the message";
+   Mailer.BodyFormat = MailFormat.Text; 
+2. // setup the mail so username and password are sended to the server    
+      
+Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1");
+//basic authentication		
+Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername","myusername");
+//set your username here		
+Mailer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword","mypassword");
+//set your password here
+
+3. //Set the server and send the message
+
+    SmtpMail.SmtpServer = "smtp.someserver.com"
+    SmtpMail.Send(Mailer);
+
+Actual Results:
+
+The server responds to the Send command that the mail cannot be send
+because rely access is not allowed to unauthenticated clients.
+
+Expected Results:
+
+The server should accept the user/password authentification and send the
+mail. This code works ok with .NET framework.
+
+How often does this happen? 
+
+Everytime
+
+Additional Information:
+
+Mono For windows 1.0.5
+Windows XP Pro
+SharpDevelop 1.0.3