MailContent

What to hand the mail composer: recipients, a subject, a body and optional attachments.
public sealed class MailContent

Properties

Attachments

Files to attach.

Type: IList<MailAttachment>

public IList<MailAttachment> Attachments { get; }

Bcc

Blind carbon-copy recipients.

Type: IList<string>

public IList<string> Bcc { get; }

Body

The message body, or null for an empty one.

Type: string?

public string? Body { get; set; }

Cc

Carbon-copy recipients.

Type: IList<string>

public IList<string> Cc { get; }

IsHtml

Whether Body is HTML instead of plain text.

Type: bool

public bool IsHtml { get; set; }

Subject

The subject line, or null for an empty one.

Type: string?

public string? Subject { get; set; }

To

Primary recipients.

Type: IList<string>

public IList<string> To { get; }