This commit is contained in:
Tizian.Breuch
2025-11-26 17:09:41 +01:00
parent ee5abfd829
commit 5510ffa836
2 changed files with 15 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ namespace Webshop.Application.Services.Public
private async Task<string> LoadAndFormatTemplate(string title, string body, string btnText, string btnLink)
{
// Pfad: wwwroot/templates/email-template.html
var templatePath = Path.Combine(_env.WebRootPath ?? _env.ContentRootPath, "templates", "email-template.html");
var templatePath = Path.Combine(AppContext.BaseDirectory, "Templates", "_EmailTemplate.html");
string template;