FluentEmail
FluentEmail copied to clipboard
Layout cannot be located
Given a view that specifies a layout:
@{
Layout = "_Layout";
}
When I call:
UsingTemplateFromFile($@"{Directory.GetCurrentDirectory()}\EmailTemplates\Verify.cshtml", viewModel);
I get an error that the layout cannot be located. I also tried specifying the file path:
@{
Layout = $@"{System.IO.Directory.GetCurrentDirectory()}\EmailTemplates\_Layout.cshtml";
}