mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fix the issue for welcome emails not sending
This commit is contained in:
parent
ba6f1f392b
commit
cf9dd831cc
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue