mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
using Volo.Abp.Emailing.Localization;
|
|
using Volo.Abp.Emailing.Templates;
|
|
using Volo.Abp.Emailing.Templates.VirtualFiles;
|
|
|
|
namespace Volo.Abp.Emailing
|
|
{
|
|
public class TestEmailTemplateProvider : EmailTemplateDefinitionProvider
|
|
{
|
|
public override void Define(IEmailTemplateDefinitionContext context)
|
|
{
|
|
var template1 = new EmailTemplateDefinition("template1", defaultCultureName: "en", layout: null)
|
|
.AddTemplateVirtualFiles("/Volo/Abp/Emailing/TestTemplates/Template1");
|
|
context.Add(template1);
|
|
|
|
var template2 = new EmailTemplateDefinition("template2", layout: StandardEmailTemplates.DefaultLayout)
|
|
.AddTemplateVirtualFiles("/Volo/Abp/Emailing/TestTemplates/Template2");
|
|
context.Add(template2);
|
|
|
|
var template3 = new EmailTemplateDefinition("template3", layout: null, singleTemplateFile: true, localizationResource: typeof(AbpEmailingTestResource))
|
|
.AddTemplateVirtualFile("/Volo/Abp/Emailing/TestTemplates/Template3/Template.tpl");
|
|
context.Add(template3);
|
|
}
|
|
}
|
|
} |