Log4net
  1. Log4net
  2. LOG4NET-128

Either documentation is incorrect or a bug in SmtpAppender

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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

          Thomas Höhler created issue -
          Hide
          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
          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???)
          Ron Grabowski made changes -
          Field Original Value New Value
          Fix Version/s 1.2.11 [ 12310980 ]
          Assignee Ron Grabowski [ ron ]
          Hide
          Ron Grabowski added a comment -

          Fixed in r688416.

          Show
          Ron Grabowski added a comment - Fixed in r688416.
          Ron Grabowski made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Stefan Bodewig made changes -
          Link This issue is duplicated by LOG4NET-244 [ LOG4NET-244 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          257d 10h 56m 1 Ron Grabowski 23/Aug/08 22:15

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development