MessageBuilderConfigAddressDelimeter Property
Gets or sets the character to be used as a delimiter for e-mail addresses.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public AddressDelimeterChar AddressDelimeter { get; set; }

Property Value

Type: AddressDelimeterChar
An AddressDelimeterChar value representing the delimiter character.
Remarks

This property allows the developer to select a comma (",") or semicolon (";") character to be used as a delimiter for e-mail addresses when composing e-mail address strings consisting of multiple e-mail addresses. The default value is Comma.

This property has no effect on parsing e-mail address strings. During parsing, MailBee accepts both comma and semicolon as valid delimiters.

Note Note
MessageBuilderConfig object cannot be used on its own. To access its members, the developer should use MailMessage.Builder property.
Examples
The sample creates a new message, sets two recipient e-mail addresses, and demonstrates the effect of changing the delimiter character.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

// Create a new MailMessage object.
MailMessage msg = new MailMessage();

// Add message recipients.
msg.To.Add("jdoe@domain.com");
msg.To.Add("bill@domain.com");

// Set semicolon as a delimiter character.
msg.Builder.AddressDelimeter = AddressDelimeterChar.Semicolon;

Console.WriteLine(msg.To.AsString);

// Set comma as a delimiter character.
msg.Builder.AddressDelimeter = AddressDelimeterChar.Comma;

Console.WriteLine(msg.To.AsString);
See Also