[Mono-bugs] [Bug 68829][Nor] New - SmtpMail sends MailMessage Fields when it should not.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 26 Oct 2004 18:50:28 -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 max@artsalliancelabs.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68829
--- shadow/68829 2004-10-26 18:50:28.000000000 -0400
+++ shadow/68829.tmp.20333 2004-10-26 18:50:28.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 68829
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity: 001 One hour
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: max@artsalliancelabs.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SmtpMail sends MailMessage Fields when it should not.
+
+Description of Problem:
+The SmtpMail implementation puts the MailMsg.Fields collection in the
+outbound message, if it's a multipart message. Problem is on Windows, in
+CDO, that is used to store passwords for SMTP Authentication. So in
+theory, you might send your SMTP password out via email.
+
+These lines should be removed from SmtpClient.cs. Fields don't get sent on
+Windows either.
+
+#if NET_1_1
+ // Add all the custom headers to body part as specified in
+ //Fields property of MailMessageWrapper
+ partHeader.Data.Add(msg.Fields.Data);
+#endif