Logging Block API: inconsistent "ToAddress" delimiter

Topics: Logging Application Block
Nov 6, 2007 at 4:39 PM
In the .NET framework's MailAddressCollection class's Add method ( http://msdn2.microsoft.com/en-us/library/ms144695.aspx ),
you cannot use ";" as a delimiter because it will throw the FormatException exception.

You have to use it as below.
  • mac.Add( "recipient1@email.com, recipient2@email.com" );

But in the Logging Application Block's EmailTraceListener's "ToAddress" property,
if comma ( "," ) was used, only the very first email address in the list gets the email.

For example, in the following "ToAddress" property value,
  • "recipient1@email.com, recipient2@email.com, recipient3@email.com"
only recipient1@email.com receives the email.
The remaining email recipients don't get the email notification.

You have to use ";" as a delimiter in order for all email recipients to receive the email as below.
  • "recipient1@email.com; recipient2@email.com; recipient3@email.com"

Is this an oversight by the Enterprise Library team in terms of the API standards between .NET Framework and the Ent. Library?