Search Results for

    Show / Hide Table of Contents

    Class EmailTemplateService

    Service for generating branded email templates

    Inheritance
    object
    EmailTemplateService
    Implements
    IEmailTemplateService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.Core.Infrastructure.EmailService
    Assembly: OEMS.Core.dll
    Syntax
    public class EmailTemplateService : IEmailTemplateService

    Constructors

    EmailTemplateService(IFileService, IConfiguration)

    Declaration
    public EmailTemplateService(IFileService fileService, IConfiguration configuration)
    Parameters
    Type Name Description
    IFileService fileService
    IConfiguration configuration

    Methods

    GeneratePasswordResetEmailAsync(User, Organization, string)

    Generates a branded password reset email

    Declaration
    public Task<string> GeneratePasswordResetEmailAsync(User user, Organization organization, string resetUrl)
    Parameters
    Type Name Description
    User user

    The user requesting password reset

    Organization organization

    The user's organization for branding

    string resetUrl

    The password reset URL

    Returns
    Type Description
    Task<string>

    HTML email content

    GetOrganizationLogoUrlAsync(Organization)

    Gets the logo URL for an organization

    Declaration
    public Task<string> GetOrganizationLogoUrlAsync(Organization organization)
    Parameters
    Type Name Description
    Organization organization

    The organization

    Returns
    Type Description
    Task<string>

    Logo URL or default logo path

    Implements

    IEmailTemplateService
    In this article
    Back to top Generated by DocFX