Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

EmailTemplateService

API reference for EmailTemplateService in Vendr, the eCommerce solution for Umbraco v8+

EmailTemplateService

public class EmailTemplateService : EntityServiceBase, IEmailTemplateService

Inheritance

Namespace

Constructors

EmailTemplateService

public EmailTemplateService(ILicensingService licensingService, 
    IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, ILogger logger, 
    ICache cache, IEntityStateCacheAccessor entityStateCacheAccessor)

Methods

DeleteEmailTemplate (1 of 2)

public void DeleteEmailTemplate(Guid id)

DeleteEmailTemplate (2 of 2)

public void DeleteEmailTemplate(EmailTemplate entity)

EmailTemplateExists

public bool EmailTemplateExists(Guid storeId, string alias)

GetEmailTemplate (1 of 2)

public EmailTemplateReadOnly GetEmailTemplate(Guid id)

GetEmailTemplate (2 of 2)

public EmailTemplateReadOnly GetEmailTemplate(Guid storeId, string alias)

GetEmailTemplates

public IEnumerable<EmailTemplateReadOnly> GetEmailTemplates(Guid storeId)

SaveEmailTemplate

public void SaveEmailTemplate(EmailTemplate entity)

SendEmail

public bool SendEmail(EmailTemplateReadOnly emailTemplate, OrderReadOnly order)

SendEmail<TModel>

public bool SendEmail<TModel>(EmailTemplateReadOnly emailTemplate, TModel model, 
    string toEmailAddress, string languageIsoCode)

SortEmailTemplates

public void SortEmailTemplates(Guid[] sortedIds)

Edit this page on GitHub

Site + logo design © 2024 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.