In the .NET framework's MailAddressCollection class's Add method (
you cannot use ";" as a delimiter because it will throw the FormatException exception.
You have to use it as below.
- mac.Add( "email@example.com, firstname.lastname@example.org" );
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,
only email@example.com receives the email.
- "firstname.lastname@example.org, email@example.com, firstname.lastname@example.org"
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.
- "email@example.com; firstname.lastname@example.org; email@example.com"
Is this an oversight by the Enterprise Library team in terms of the API standards between .NET Framework and the Ent. Library?