MailMessageTo Property
Gets or sets the e-mail addresses of the primary recipients of the mail message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public EmailAddressCollection To { get; set; }

Property Value

Type: EmailAddressCollection
A reference to the collection of the e-mail addresses of the primary recipients of the mail message. The default value is an empty collection.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionvalue is a null reference (Nothing in Visual Basic).
Remarks

To specify this property as a string, set msg.To.AsString value (assuming msg is MailMessage instance).

To send a message, you should specify at least one recipient's e-mail address in To, Cc, or Bcc property. It's possible, however, to send a mail message even if no recipients specified in the message itself using Smtp.Send method.

If you need to deal with international e-mail addresses (IDN domains), use FromIdnAddress and ToIdnAddress methods to convert e-mail addresses between human-readable and SMTP-safe formats.

Examples
The example is available in MailMessage topic.
See Also