From 066c0ba3da462ccce0e2b6ed9092c2075b0ab928 Mon Sep 17 00:00:00 2001 From: "anthony@akjm.photography" Date: Tue, 2 Jun 2020 21:01:18 +1000 Subject: [PATCH 01/11] v4.0.0 - Rewrote plugin to support MailKit/MimeKit as SmtpClient is now obsolete. Compatibility issues with various email providers should now be resolved. Ignore SSL certificate errors is now a configurable option. --- .../Api/ServerApiEntryPoints.cs | 1 + .../Configuration/PluginConfiguration.cs | 2 +- .../Configuration/config.html | 9 +- .../Dependencies/MailKit.dll | Bin 0 -> 817152 bytes .../Dependencies/MimeKit.dll | Bin 0 -> 985088 bytes ...iaBrowser.Plugins.SmtpNotifications.csproj | 18 +++- .../Notifier.cs | 96 +++++++++++------- .../Plugin.cs | 46 +++++++++ 8 files changed, 134 insertions(+), 38 deletions(-) create mode 100644 MediaBrowser.Plugins.SmtpNotifications/Dependencies/MailKit.dll create mode 100644 MediaBrowser.Plugins.SmtpNotifications/Dependencies/MimeKit.dll diff --git a/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs b/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs index 122a717..8b48f21 100644 --- a/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs +++ b/MediaBrowser.Plugins.SmtpNotifications/Api/ServerApiEntryPoints.cs @@ -9,6 +9,7 @@ namespace MediaBrowser.Plugins.SmtpNotifications.Api { + [Route("/Notification/SMTP/Test/{UserID}", "POST", Summary = "Tests SMTP")] public class TestNotification : IReturnVoid { diff --git a/MediaBrowser.Plugins.SmtpNotifications/Configuration/PluginConfiguration.cs b/MediaBrowser.Plugins.SmtpNotifications/Configuration/PluginConfiguration.cs index f5eab58..b502edf 100644 --- a/MediaBrowser.Plugins.SmtpNotifications/Configuration/PluginConfiguration.cs +++ b/MediaBrowser.Plugins.SmtpNotifications/Configuration/PluginConfiguration.cs @@ -28,7 +28,7 @@ public class SMTPOptions public string PwData { get; set; } public string MediaBrowserUserId { get; set; } public bool SSL { get; set; } - + public bool IgnoreCertificateErrors { get; set; } public SMTPOptions() { Port = 25; diff --git a/MediaBrowser.Plugins.SmtpNotifications/Configuration/config.html b/MediaBrowser.Plugins.SmtpNotifications/Configuration/config.html index 9fa524f..64a4089 100644 --- a/MediaBrowser.Plugins.SmtpNotifications/Configuration/config.html +++ b/MediaBrowser.Plugins.SmtpNotifications/Configuration/config.html @@ -64,6 +64,12 @@ Password for your SMTP Server. + + +