Fixed a small bug where an exception would get thrown

pull/242/head
tidusjar 9 years ago
parent 0cf73f2cf6
commit 80d2a7f8e1

@ -84,9 +84,6 @@ namespace PlexRequests.Services.Notification
case NotificationType.Test: case NotificationType.Test:
await EmailTest(model, emailSettings); await EmailTest(model, emailSettings);
break; break;
default:
throw new ArgumentOutOfRangeException();
} }
} }
@ -185,7 +182,7 @@ namespace PlexRequests.Services.Notification
{ {
var message = new MimeMessage 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!", Subject = "Plex Requests: Test Message!",
}; };
message.From.Add(new MailboxAddress(settings.EmailSender, settings.EmailSender)); message.From.Add(new MailboxAddress(settings.EmailSender, settings.EmailSender));

Loading…
Cancel
Save