Table of Contents

Class EmailTemplateContent

Namespace
MailStencil
Assembly
MailStencil.Core.dll

Immutable engine-neutral template text, independent of storage identity.

public sealed class EmailTemplateContent
Inheritance
EmailTemplateContent
Inherited Members

Constructors

EmailTemplateContent(string, string?, string?)

Creates template content. At least one body must be non-null; empty text is permitted.

public EmailTemplateContent(string subject, string? htmlBody = null, string? textBody = null)

Parameters

subject string
htmlBody string
textBody string

Properties

HtmlBody

Gets the HTML template, or null when absent.

public string? HtmlBody { get; }

Property Value

string

Subject

Gets the subject template.

public string Subject { get; }

Property Value

string

TextBody

Gets the plain text template, or null when absent.

public string? TextBody { get; }

Property Value

string