Table of Contents

Class EmailRecipient

Namespace
MailForge.Models
Assembly
MailForge.dll

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

address EmailAddress
type EmailRecipientType

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

address string
type EmailRecipientType
displayName string

Properties

Address

The recipient's address.

public EmailAddress Address { get; }

Property Value

EmailAddress

Type

The role of this recipient on the message.

public EmailRecipientType Type { get; }

Property Value

EmailRecipientType

Methods

ToString()

Returns a string representation of this recipient.

public override string ToString()

Returns

string