[Mono-bugs] [Bug 578271] New: System.Net.Mail.SmtpClient ReplyTo header is incorrect

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 9 10:13:38 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=578271

http://bugzilla.novell.com/show_bug.cgi?id=578271#c0


           Summary: System.Net.Mail.SmtpClient ReplyTo header is incorrect
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: random at musites.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2)
Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)

Setting the ReplyTo property on a MailMessage results in an incorrect SMTP
header being set.

E.g. (C#):

mailMessage.ReplyTo = new MailAddress("email at example.com","Example user");

results in the following e-mail header:

ReplyTo: "Example user" <email at example.com>

The problem appears to be due to a missing hyphen on line 683 of
/trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs.

SendHeader ("ReplyTo", EncodeAddresses (message.ReplyToList)); 
should be changed to:
SendHeader ("Reply-To", EncodeAddresses (message.ReplyToList)); 

I saw the problem in version 2.4.3 and it appears to be still present in the
SVN trunk code.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list