[Mono-bugs] [Bug 45746][Nor] New - SmtpMail does not accept empty string in Bcc or Cc properties

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 2 Jul 2003 15:32:10 -0400 (EDT)


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 gert.driesen@pandora.be.

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

--- shadow/45746	Wed Jul  2 15:32:10 2003
+++ shadow/45746.tmp.31822	Wed Jul  2 15:32:10 2003
@@ -0,0 +1,28 @@
+Bug#: 45746
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Gentoo 1.4 RC4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SmtpMail does not accept empty string in Bcc or Cc properties
+
+The System.Web.Mail.SmtpMail class throws the following exception when an
+empty string is specified for the Bcc or Cc property :
+
+Unhandled Exception: System.Web.HttpException: Invalid e-mail address: ''.
+in <0x00173> 00 System.Web.Mail.SmtpMail:Send (System.Web.Mail.MailMessage)
+in <0x000c4> 00 Mail.Test:Main ()
+
+Specifying an empty string for these properties works fine on .NET.
+
+I've included a test case that allows you to reproduce this issue.