From cf9dd831cceb2f5440c8a5c1a7ebbf8b0f481c9e Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 4 Jan 2018 20:27:35 +0000 Subject: [PATCH] Fix the issue for welcome emails not sending --- src/Ombi.Notifications/GenericEmailProvider.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Ombi.Notifications/GenericEmailProvider.cs b/src/Ombi.Notifications/GenericEmailProvider.cs index 4a425c4af..e28b48c27 100644 --- a/src/Ombi.Notifications/GenericEmailProvider.cs +++ b/src/Ombi.Notifications/GenericEmailProvider.cs @@ -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