Click or drag to resize
MimeKit

MimeMessageGetRecipients Method

Get the concatenated list of recipients.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public IList<MailboxAddress> GetRecipients(
	bool onlyUnique = false
)

Parameters

onlyUnique  Boolean  (Optional)
If true, only mailboxes with a unique address will be included.

Return Value

IListMailboxAddress
The concatenated list of recipients.
Remarks

Gets the concatenated list of recipients.

If the Resent-Sender or Resent-From headers exist, then the recipients defined by the Resent-To, Resent-Cc and Resent-Bcc headers will be used. Otherwise, the recipients defined by the To, Cc and Bcc headers will be used.

See Also