Table of Contents

Class UserMailAttachment

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

A file sent with a UserMail.

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

Properties

Content

The file's bytes; null once the mail has been sent or given up, when only the description is kept.

public byte[] Content { get; init; }

Property Value

byte[]

ContentId

The Content-ID the HTML body names the file by as cid:, without angle brackets; null for a plain attachment.

public string ContentId { get; init; }

Property Value

string

ContentType

The declared content type; one that does not parse is sent as application/octet-stream.

public required string ContentType { get; init; }

Property Value

string

FileName

The name the recipient sees; it is sanitized when the mail is sent.

public required string FileName { get; init; }

Property Value

string

Size

The size in bytes, kept when the content is no longer.

public long Size { get; init; }

Property Value

long