From 9c3cb42c299283c694e5c212c25df99d493e6565 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 1 Apr 2024 19:23:55 +0100 Subject: [PATCH] Fix the other email issue --- .../EmailBasicTemplate.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs b/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs index 4bac4b3d8..afbc73088 100644 --- a/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs +++ b/src/Ombi.Notifications.Templates/EmailBasicTemplate.cs @@ -12,19 +12,16 @@ namespace Ombi.Notifications.Templates { if (string.IsNullOrEmpty(_templateLocation)) { -#if DEBUG - _templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates", - "BasicTemplate.html"); -#else - _templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "Templates","BasicTemplate.html"); -#endif + //_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates", + // "BasicTemplate.html"); + _templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "Templates", "BasicTemplate.html"); } return _templateLocation; } } private string _templateLocation; - + private const string SubjectKey = "{@SUBJECT}"; private const string BodyKey = "{@BODY}"; private const string Poster = "{@POSTER}"; @@ -43,9 +40,10 @@ namespace Ombi.Notifications.Templates return sb.ToString(); } - private string GetPosterContent(string imgsrc, string url) { + private string GetPosterContent(string imgsrc, string url) + { string posterContent; - + if (string.IsNullOrEmpty(imgsrc)) { posterContent = string.Empty;