Resolved #224 , Removed the 'SSL' option from the email notification settings. We will now use the correct secure socket options (SSL/TLS) for your email host.

This commit is contained in:
tidusjar 2016-05-23 11:40:22 +01:00
commit 8cce80654b
3 changed files with 4 additions and 18 deletions

View file

@ -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.