Fix the issue for welcome emails not sending

pull/1852/head
tidusjar 7 years ago
parent ba6f1f392b
commit cf9dd831cc

@ -37,10 +37,13 @@ namespace Ombi.Notifications
var customization = await CustomizationSettings.GetSettingsAsync();
var html = email.LoadTemplate(model.Subject, model.Message, null, customization.Logo);
var textBody = string.Empty;
model.Other.TryGetValue("PlainTextBody", out textBody);
var body = new BodyBuilder
{
HtmlBody = html,
TextBody = model.Other["PlainTextBody"]
TextBody = textBody
};
var message = new MimeMessage

Loading…
Cancel
Save