mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Does not compile, need to get data from UI into nancy somehow and figure out why IMassEmail is not initializing
This commit is contained in:
parent
16823e2739
commit
8f3c4ca1b2
7 changed files with 255 additions and 7 deletions
|
@ -111,11 +111,14 @@ namespace Ombi.Services.Jobs
|
|||
var settings = NewsletterSettings.GetSettings();
|
||||
Start(settings, true);
|
||||
}
|
||||
public void MassEmailAdminTest()
|
||||
public void MassEmailAdminTest(string html)
|
||||
{
|
||||
Log.Debug("Starting Test Newsletter");
|
||||
Log.Debug("Starting Mass Email Test");
|
||||
var settings = NewsletterSettings.GetSettings();
|
||||
Start(settings, true);
|
||||
var plexSettings = PlexSettings.GetSettings();
|
||||
var template = new MassEmailTemplate();
|
||||
var body = template.LoadTemplate(html);
|
||||
Send(settings, body, plexSettings, true);
|
||||
}
|
||||
|
||||
private void Start(NewletterSettings newletterSettings, bool testEmail = false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue