Gets or sets the e-mail addresses of the primary recipients of the mail message.
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.
To specify this property as a string, set msg.To.AsString value (assuming msg is MailMessage instance).
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | value is a null reference (Nothing in Visual Basic). |
The example is available in MailMessage topic.
MailMessage Class | MailBee.Mime Namespace