mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Fix the other email issue
This commit is contained in:
parent
6b49d9bc71
commit
9c3cb42c29
1 changed files with 7 additions and 9 deletions
|
@ -12,19 +12,16 @@ namespace Ombi.Notifications.Templates
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(_templateLocation))
|
if (string.IsNullOrEmpty(_templateLocation))
|
||||||
{
|
{
|
||||||
#if DEBUG
|
//_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates",
|
||||||
_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates",
|
// "BasicTemplate.html");
|
||||||
"BasicTemplate.html");
|
_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "Templates", "BasicTemplate.html");
|
||||||
#else
|
|
||||||
_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "Templates","BasicTemplate.html");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return _templateLocation;
|
return _templateLocation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private string _templateLocation;
|
private string _templateLocation;
|
||||||
|
|
||||||
private const string SubjectKey = "{@SUBJECT}";
|
private const string SubjectKey = "{@SUBJECT}";
|
||||||
private const string BodyKey = "{@BODY}";
|
private const string BodyKey = "{@BODY}";
|
||||||
private const string Poster = "{@POSTER}";
|
private const string Poster = "{@POSTER}";
|
||||||
|
@ -43,9 +40,10 @@ namespace Ombi.Notifications.Templates
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetPosterContent(string imgsrc, string url) {
|
private string GetPosterContent(string imgsrc, string url)
|
||||||
|
{
|
||||||
string posterContent;
|
string posterContent;
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(imgsrc))
|
if (string.IsNullOrEmpty(imgsrc))
|
||||||
{
|
{
|
||||||
posterContent = string.Empty;
|
posterContent = string.Empty;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue