[Mono-bugs] [Bug 80807][Nor] New - System.Net.MailMessage#To is null when I use the parameterless constructor

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 12 10:16:43 EST 2007


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 premysl.srubar at post.cz.

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

--- shadow/80807	2007-02-12 10:16:43.000000000 -0500
+++ shadow/80807.tmp.8386	2007-02-12 10:16:43.000000000 -0500
@@ -0,0 +1,27 @@
+Bug#: 80807
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: Premysl.Srubar at post.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Net.MailMessage#To is null when I use the parameterless constructor
+
+MailAddress from = new MailAddress("mail at mail.com");
+MailMessage m = new MailMessage();
+m.From = from;
+m.To.Add("mail at mail.com"); //Throws NullException
+
+
+In MS .Net in works as expected. 
+
+I've tried it on WinXp and on SuSE9 with the same result.


More information about the mono-bugs mailing list