Table of Contents

Class UserMailBatch

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

One mail to many users, handed to QueueBatchAsync(UserMailBatch, CancellationToken), whose content and files are stored once however many it goes to.

public sealed record UserMailBatch : IEquatable<UserMailBatch>
Inheritance
UserMailBatch
Implements
Inherited Members

Properties

Attachments

Files sent with every mail of the batch, stored once and within the configured limits.

public UserMailAttachment[] Attachments { get; init; }

Property Value

UserMailAttachment[]

Body

The body as plain text; required when there is no HTML body.

public string Body { get; init; }

Property Value

string

BodyHtml

The body as HTML; sanitized when queued, and the text body is derived from it when none is given.

public string BodyHtml { get; init; }

Property Value

string

Category

The key of a registered category; an unknown key is refused when the batch is queued.

public required string Category { get; init; }

Property Value

string

Kind

Which kind of mail every mail of the batch is, shown in each recipient's history; default Message.

public UserMailKind Kind { get; init; }

Property Value

UserMailKind

RecipientAddresses

Addresses the mail goes to alone, with no user key, each queued once; for contact mail, which the contact message service queues and Tharga.Team.IUserMailQueue refuses.

public UserMailBatchAddress[] RecipientAddresses { get; init; }

Property Value

UserMailBatchAddress[]

RecipientUserKeys

The keys of the users the mail is for; each is queued once, however often it is named.

public required string[] RecipientUserKeys { get; init; }

Property Value

string[]

Subject

The subject line.

public required string Subject { get; init; }

Property Value

string

TeamKey

The key of the team every mail of the batch is about, so the mail log can be filtered by organisation; null when it belongs to none or to several.

public string TeamKey { get; init; }

Property Value

string