Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-128

Either documentation is incorrect or a bug in SmtpAppender

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.11
    • Component/s: Appenders, Documentation
    • Labels:
      None
    • Environment:
      Windows 2003 Server EN (fully patched), .NET 2.0

      Description

      Sending the mails via SmtpAppender to more than one receipient fails as described in the documentation. The documentation says that all receipients should be added semicolon-separated. This fails, but adding the receipients comma-separated works. So, either the documentaion is incorrect or this is a bug.

        Issue Links

          Activity

          Hide
          hoehler Thomas Höhler added a comment -

          This is a bug in the documentation for the .Net 2.0 version. The msdn documentation for the "to" parameter says:

          1. The e-mail addresses to add to the MailAddressCollection. Multiple e-mail addresses must be separated with a comma character (",").
          2. "If multiple e-mail addresses separated with a semicolon character (";") are passed in the addresses parameter. a FormatException exception is raised."

          The .Net 1.1 version uses System.Web.Mail where the receipients have to be added semicolon separated. .Net 2.0 uses System.Net.Mail where the receipients have to be added comma separeted. (Why in the hell do they change this behaviour from semicolon to comma where all toher standards are using semicolon???)

          Show
          hoehler Thomas Höhler added a comment - This is a bug in the documentation for the .Net 2.0 version. The msdn documentation for the "to" parameter says: 1. The e-mail addresses to add to the MailAddressCollection. Multiple e-mail addresses must be separated with a comma character (","). 2. "If multiple e-mail addresses separated with a semicolon character (";") are passed in the addresses parameter. a FormatException exception is raised." The .Net 1.1 version uses System.Web.Mail where the receipients have to be added semicolon separated. .Net 2.0 uses System.Net.Mail where the receipients have to be added comma separeted. (Why in the hell do they change this behaviour from semicolon to comma where all toher standards are using semicolon???)
          Hide
          ron Ron Grabowski added a comment -

          Fixed in r688416.

          Show
          ron Ron Grabowski added a comment - Fixed in r688416.

            People

            • Assignee:
              ron Ron Grabowski
              Reporter:
              hoehler Thomas Höhler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development