mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
This commit is contained in:
parent
96f27f8f1a
commit
f76e54408e
6 changed files with 458 additions and 428 deletions
|
|
@ -36,6 +36,7 @@ using PlexRequests.Core;
|
|||
using PlexRequests.Core.SettingModels;
|
||||
using PlexRequests.Services.Interfaces;
|
||||
using SmtpClient = MailKit.Net.Smtp.SmtpClient;
|
||||
using PlexRequests.Store;
|
||||
|
||||
namespace PlexRequests.Services.Notification
|
||||
{
|
||||
|
|
@ -119,8 +120,8 @@ namespace PlexRequests.Services.Notification
|
|||
{
|
||||
var message = new MimeMessage
|
||||
{
|
||||
Body = new TextPart("plain") { Text = $"Hello! The user '{model.User}' has requested {model.Title}! Please log in to approve this request. Request Date: {model.DateTime.ToString("f")}" },
|
||||
Subject = $"Plex Requests: New request for {model.Title}!"
|
||||
Body = new TextPart("plain") { Text = $"Hello! The user '{model.User}' has requested the {RequestTypeDisplay.Get(model.RequestType)?.ToLower()} '{model.Title}'! Please log in to approve this request. Request Date: {model.DateTime.ToString("f")}" },
|
||||
Subject = $"Plex Requests: New {RequestTypeDisplay.Get(model.RequestType)?.ToLower()} request for {model.Title}!"
|
||||
};
|
||||
message.From.Add(new MailboxAddress(settings.EmailSender, settings.EmailSender));
|
||||
message.To.Add(new MailboxAddress(settings.RecipientEmail, settings.RecipientEmail));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue