Class EmailRecipient
A single message recipient together with its role (To, Cc, or Bcc).
public sealed class EmailRecipient
- Inheritance
-
EmailRecipient
- Inherited Members
Constructors
EmailRecipient(EmailAddress, EmailRecipientType)
Creates a recipient from an address and role.
public EmailRecipient(EmailAddress address, EmailRecipientType type = EmailRecipientType.To)
Parameters
addressEmailAddresstypeEmailRecipientType
EmailRecipient(string, EmailRecipientType, string?)
Creates a recipient from a raw address string and role.
public EmailRecipient(string address, EmailRecipientType type = EmailRecipientType.To, string? displayName = null)
Parameters
addressstringtypeEmailRecipientTypedisplayNamestring
Properties
Address
The recipient's address.
public EmailAddress Address { get; }
Property Value
Type
The role of this recipient on the message.
public EmailRecipientType Type { get; }
Property Value
Methods
ToString()
Returns a string representation of this recipient.
public override string ToString()