MailAttachment

A file attached to a composed mail.
public sealed class MailAttachment

Properties

Data

The file's bytes.

Type: byte

public required byte[] Data { get; init; }

FileName

The file name the recipient sees, including its extension.

Type: string

public required string FileName { get; init; }

MimeType

The file's MIME type, for example application/pdf or image/png.

Type: string

public required string MimeType { get; init; }