HtmlForgeX

API Reference

Class

EmailInlineResource

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Modifiers sealed

Represents an inline resource (typically an image) intended to be attached as an inline MIME part (CID). Html output should reference it via cid:{ContentId}.

Inheritance

  • Object
  • EmailInlineResource

Constructors

public EmailInlineResource(String contentId, String mimeType, Byte[] data, String fileName = null) #

Creates a new inline resource description.

Parameters

contentId System.String requiredposition: 0
Content-Id value (without the cid: prefix).
mimeType System.String requiredposition: 1
MIME type (e.g., image/png).
data System.Byte[] requiredposition: 2
Raw bytes of the resource.
fileName System.String = null optionalposition: 3
Optional file name for the attachment.

Properties

public String ContentId { get; } #

Content-Id (without cid: prefix).

public String MimeType { get; } #

MIME type (e.g., image/png).

public Byte[] Data { get; } #

Raw bytes of the resource.

public String FileName { get; } #

Optional file name for the attachment.