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
Properties
HtmlBody
Gets the HTML template, or null when absent.
public string? HtmlBody { get; }
Property Value
Subject
Gets the subject template.
public string Subject { get; }
Property Value
TextBody
Gets the plain text template, or null when absent.
public string? TextBody { get; }