diff --git a/PlexRequests.Core/SettingModels/EmailNotificationSettings.cs b/PlexRequests.Core/SettingModels/EmailNotificationSettings.cs index 74cb7ec92..2e3db9451 100644 --- a/PlexRequests.Core/SettingModels/EmailNotificationSettings.cs +++ b/PlexRequests.Core/SettingModels/EmailNotificationSettings.cs @@ -36,6 +36,5 @@ namespace PlexRequests.Core.SettingModels public bool Enabled { get; set; } public bool EnableUserEmailNotifications { get; set; } public string RecipientEmail { get; set; } - public bool Ssl { get; set; } } } \ No newline at end of file diff --git a/PlexRequests.Services/Notification/EmailMessageNotification.cs b/PlexRequests.Services/Notification/EmailMessageNotification.cs index 311ef6d69..efd4abe08 100644 --- a/PlexRequests.Services/Notification/EmailMessageNotification.cs +++ b/PlexRequests.Services/Notification/EmailMessageNotification.cs @@ -25,9 +25,10 @@ // ************************************************************************/ #endregion using System; -using System.Net; -using System.Net.Mail; using System.Threading.Tasks; + +using MailKit.Security; + using MimeKit; using NLog; @@ -162,7 +163,7 @@ namespace PlexRequests.Services.Notification { using (var client = new SmtpClient()) { - client.Connect(settings.EmailHost, settings.EmailPort, settings.Ssl); + client.Connect(settings.EmailHost, settings.EmailPort, SecureSocketOptions.Auto); // Let MailKit figure out the correct SecureSocketOptions. // Note: since we don't have an OAuth2 token, disable // the XOAUTH2 authentication mechanism. diff --git a/PlexRequests.UI/Views/Admin/EmailNotifications.cshtml b/PlexRequests.UI/Views/Admin/EmailNotifications.cshtml index b9b22f5a7..ce7bddbf2 100644 --- a/PlexRequests.UI/Views/Admin/EmailNotifications.cshtml +++ b/PlexRequests.UI/Views/Admin/EmailNotifications.cshtml @@ -30,20 +30,6 @@ -