Skip to content

Commit

Permalink
Fix the other email issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Apr 1, 2024
1 parent 6b49d9b commit 9c3cb42
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Ombi.Notifications.Templates/EmailBasicTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@ public override string TemplateLocation
{
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}";
Expand All @@ -43,9 +40,10 @@ public override string TemplateLocation
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;
Expand Down

0 comments on commit 9c3cb42

Please sign in to comment.