[Mono-bugs] [Bug 81869][Nor] New - System.Net.Mail.SmtpClient is not doing any rfc 2047 encoding on headers
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jun 13 11:47:32 EDT 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 anmar at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=81869
--- shadow/81869 2007-06-13 11:47:32.000000000 -0400
+++ shadow/81869.tmp.30762 2007-06-13 11:47:32.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 81869
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: anmar at gmx.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Net.Mail.SmtpClient is not doing any rfc 2047 encoding on headers
+
+Headers generated by System.Net.Mail.SmtpClient aren't being rfc2047
+encoded at all, so setting any of them (Subject, DisplayName on any
+address, ...) with non ascii characters will generate a message that
+violates rfc 2822.
+
+The deprecated System.Web.Mail.SmtpClient did at least do some simple
+encoding (though it always defaults to base64).
+
+Simple test case:
+
+System.Net.Mail.SmtpClient client = new
+System.Net.Mail.SmtpClient("localhost", 25);
+client.Send("address at example.com", "address at example.com", "Subjet with non
+ascii content áéíóú.", "body");
+
+The generated subject line will only be readable if the recipient's MUA
+guesses the encoding.
More information about the mono-bugs
mailing list