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( "firstname.lastname@example.org, email@example.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,
only firstname.lastname@example.org receives the email.
- "email@example.com, firstname.lastname@example.org, email@example.com"
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.
- "firstname.lastname@example.org; email@example.com; firstname.lastname@example.org"
Is this an oversight by the Enterprise Library team in terms of the API standards between .NET Framework and the Ent. Library?