From 5510ffa8365653c65cfc26ffc13cc063b19f539d Mon Sep 17 00:00:00 2001 From: "Tizian.Breuch" Date: Wed, 26 Nov 2025 17:09:41 +0100 Subject: [PATCH] pfad --- Webshop.Api/appsettings.Development.json | 16 ++++++++++++++-- .../Services/Public/EmailService.cs | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Webshop.Api/appsettings.Development.json b/Webshop.Api/appsettings.Development.json index 9177697..e610272 100644 --- a/Webshop.Api/appsettings.Development.json +++ b/Webshop.Api/appsettings.Development.json @@ -16,7 +16,19 @@ "ExpirationMinutes": 120 }, "Resend": { - "ApiToken": "re_Zd6aFcvz_CqSa9Krs7WCHXjngDVLTYhGv" + "ApiToken": "re_Zd6aFcvz_CqSa9Krs7WCHXjngDVLTYhGv", + "FromEmail": "onboarding@resend.dev" }, - "App:BaseUrl": "https://shopsolution-backend.tzbre.dev" + "App": { + "BaseUrl": "https://shopsolution-backend.tzbre.dev", + "ClientUrl": "https://shopsolution-frontend.tzbre.dev", + "FrontendUrl": "https://shopsolution-frontend.tzbre.dev" + }, + "ShopInfo": { + "Name": "Mein Webshop" + }, + "EmailSettings": { + "SenderName": "Mein Webshop Support", + "SenderEmail": "noreply@shopsolution-frontend.tzbre.dev" + } } \ No newline at end of file diff --git a/Webshop.Application/Services/Public/EmailService.cs b/Webshop.Application/Services/Public/EmailService.cs index 82c3e92..c640eb4 100644 --- a/Webshop.Application/Services/Public/EmailService.cs +++ b/Webshop.Application/Services/Public/EmailService.cs @@ -103,7 +103,7 @@ namespace Webshop.Application.Services.Public private async Task 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;