Fixed a small bug where an exception would get thrown

This commit is contained in:
tidusjar 2016-05-25 09:26:53 +01:00
commit 80d2a7f8e1

View file

@ -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));