mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fixed a small bug where an exception would get thrown
This commit is contained in:
parent
0cf73f2cf6
commit
80d2a7f8e1
1 changed files with 3 additions and 6 deletions
|
@ -84,9 +84,6 @@ namespace PlexRequests.Services.Notification
|
|||
case NotificationType.Test:
|
||||
await EmailTest(model, emailSettings);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -185,7 +182,7 @@ namespace PlexRequests.Services.Notification
|
|||
{
|
||||
var message = new MimeMessage
|
||||
{
|
||||
Body = new TextPart("plain") {Text= "This is just a test! Success!"},
|
||||
Body = new TextPart("plain") { Text = "This is just a test! Success!" },
|
||||
Subject = "Plex Requests: Test Message!",
|
||||
};
|
||||
message.From.Add(new MailboxAddress(settings.EmailSender, settings.EmailSender));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue