Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IEmailSender

    Simple abstraction to send an email message

    Namespace: Umbraco.Cms.Core.Mail
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IEmailSender

    Methods

    View Source

    CanSendRequiredEmail()

    Verifies if the email sender is configured to send emails.

    Declaration
    bool CanSendRequiredEmail()
    Returns
    Type Description
    bool
    View Source

    SendAsync(EmailMessage, string)

    Sends a message asynchronously.

    Declaration
    [Obsolete("Please use the overload with expires parameter. Scheduled for removal in Umbraco 18.")]
    Task SendAsync(EmailMessage message, string emailType)
    Parameters
    Type Name Description
    EmailMessage message
    string emailType
    Returns
    Type Description
    Task
    View Source

    SendAsync(EmailMessage, string, bool)

    Sends a message asynchronously.

    Declaration
    [Obsolete("Please use the overload with expires parameter. Scheduled for removal in Umbraco 18.")]
    Task SendAsync(EmailMessage message, string emailType, bool enableNotification)
    Parameters
    Type Name Description
    EmailMessage message
    string emailType
    bool enableNotification
    Returns
    Type Description
    Task
    View Source

    SendAsync(EmailMessage, string, bool, TimeSpan?)

    Sends a message asynchronously.

    Declaration
    Task SendAsync(EmailMessage message, string emailType, bool enableNotification = false, TimeSpan? expires = null)
    Parameters
    Type Name Description
    EmailMessage message
    string emailType
    bool enableNotification
    TimeSpan? expires
    Returns
    Type Description
    Task
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX