Table of Contents

Class EmailLinkedResource

Namespace
SEBT.Portal.Core.Services
Assembly
SEBT.Portal.Core.dll

Represents an embedded image for email with Content-ID reference.

public record EmailLinkedResource
Inheritance
object
EmailLinkedResource

Constructors

EmailLinkedResource(string, byte[], string, string)

Represents an embedded image for email with Content-ID reference.

public EmailLinkedResource(string ContentId, byte[] Data, string ContentType, string FileName)

Parameters

ContentId string

The Content-ID used to reference the image in HTML (e.g., "logo" for src="cid:logo").

Data byte[]

The image data as a byte array.

ContentType string

The MIME content type (e.g., "image/png").

FileName string

The filename for the attachment.

Properties

ContentId

The Content-ID used to reference the image in HTML (e.g., "logo" for src="cid:logo").

public string ContentId { get; init; }

Property Value

string

ContentType

The MIME content type (e.g., "image/png").

public string ContentType { get; init; }

Property Value

string

Data

The image data as a byte array.

public byte[] Data { get; init; }

Property Value

byte[]

FileName

The filename for the attachment.

public string FileName { get; init; }

Property Value

string