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.
30 lines
929 B
30 lines
929 B
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.Emailing.Templates;
|
|
using Volo.Abp.Emailing.Templates.Virtual;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
|
namespace Volo.Abp.Emailing
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpEmailingModule),
|
|
typeof(AbpTestBaseModule))]
|
|
public class AbpEmailingTestModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<VirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<AbpEmailingTestModule>();
|
|
});
|
|
|
|
Configure<EmailTemplateOptions>(options =>
|
|
{
|
|
options.Templates["template1"] =
|
|
new EmailTemplateDefinition("template1")
|
|
.SetVirtualFilePath("/Volo/Abp/Emailing/TestTemplates/template1.html");
|
|
});
|
|
}
|
|
}
|
|
}
|