Search Results for

    Show / Hide Table of Contents
    View Source

    Class NotificationEmailModel

    Represents an email when sent with notifications.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.Email
    Assembly: Umbraco.Core.dll
    Syntax
    public class NotificationEmailModel

    Constructors

    View Source

    NotificationEmailModel(NotificationEmailAddress?, IEnumerable<NotificationEmailAddress?>?, IEnumerable<NotificationEmailAddress>?, IEnumerable<NotificationEmailAddress>?, IEnumerable<NotificationEmailAddress>?, string?, string?, IEnumerable<EmailMessageAttachment>?, bool)

    Initializes a new instance of the NotificationEmailModel class.

    Declaration
    public NotificationEmailModel(NotificationEmailAddress? from, IEnumerable<NotificationEmailAddress?>? to, IEnumerable<NotificationEmailAddress>? cc, IEnumerable<NotificationEmailAddress>? bcc, IEnumerable<NotificationEmailAddress>? replyTo, string? subject, string? body, IEnumerable<EmailMessageAttachment>? attachments, bool isBodyHtml)
    Parameters
    Type Name Description
    NotificationEmailAddress from

    The sender's email address.

    IEnumerable<NotificationEmailAddress> to

    The collection of recipient email addresses.

    IEnumerable<NotificationEmailAddress> cc

    The collection of CC email addresses.

    IEnumerable<NotificationEmailAddress> bcc

    The collection of BCC email addresses.

    IEnumerable<NotificationEmailAddress> replyTo

    The collection of reply-to email addresses.

    string subject

    The email subject.

    string body

    The email body content.

    IEnumerable<EmailMessageAttachment> attachments

    The collection of email attachments.

    bool isBodyHtml

    A value indicating whether the body is HTML formatted.

    Properties

    View Source

    Attachments

    Gets the collection of email attachments.

    Declaration
    public IList<EmailMessageAttachment>? Attachments { get; }
    Property Value
    Type Description
    IList<EmailMessageAttachment>
    View Source

    Bcc

    Gets the collection of BCC email addresses.

    Declaration
    public IEnumerable<NotificationEmailAddress>? Bcc { get; }
    Property Value
    Type Description
    IEnumerable<NotificationEmailAddress>
    View Source

    Body

    Gets the email body content.

    Declaration
    public string? Body { get; }
    Property Value
    Type Description
    string
    View Source

    Cc

    Gets the collection of CC email addresses.

    Declaration
    public IEnumerable<NotificationEmailAddress>? Cc { get; }
    Property Value
    Type Description
    IEnumerable<NotificationEmailAddress>
    View Source

    From

    Gets the sender's email address.

    Declaration
    public NotificationEmailAddress? From { get; }
    Property Value
    Type Description
    NotificationEmailAddress
    View Source

    HasAttachments

    Gets a value indicating whether the email has any attachments.

    Declaration
    public bool HasAttachments { get; }
    Property Value
    Type Description
    bool
    View Source

    IsBodyHtml

    Gets a value indicating whether the body is HTML formatted.

    Declaration
    public bool IsBodyHtml { get; }
    Property Value
    Type Description
    bool
    View Source

    ReplyTo

    Gets the collection of reply-to email addresses.

    Declaration
    public IEnumerable<NotificationEmailAddress>? ReplyTo { get; }
    Property Value
    Type Description
    IEnumerable<NotificationEmailAddress>
    View Source

    Subject

    Gets the email subject.

    Declaration
    public string? Subject { get; }
    Property Value
    Type Description
    string
    View Source

    To

    Gets the collection of recipient email addresses.

    Declaration
    public IEnumerable<NotificationEmailAddress?>? To { get; }
    Property Value
    Type Description
    IEnumerable<NotificationEmailAddress>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX