Skip to content

EmailMessageModel class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

An email that code builds, e.g. an invitation or a two-factor code, which the EmailMessage view shows in the layout of the emails, see IEmailMessageRenderer. The texts are plain, and encoded when they are shown.

public class EmailMessageModel

Public Members

name description
EmailMessageModel() The default constructor.
Button { get; set; } The button, e.g. the link that accepts an invitation.
Code { get; set; } A code to show large, e.g. the one of a two-factor authentication.
Greeting { get; set; } The greeting, e.g. "Hello Nancy,".
Notes { get; set; } The notes after the message, shown smaller, e.g. until when a link works.
Paragraphs { get; set; } The paragraphs of the message.
Subject { get; set; } The subject, which is also the title of the email.

See Also