Open definitio opened 3 years ago
I also have this issue. It looks like there are two things that are causing this.
The first is how the option is stored in config. I don't know C# well enough to know if the option is read back in as a string or a boolean. Either way that value need to be "evaluated".
In MediaBrowser.Plugins.SmtpNotifications/Notifier.cs
on line 52 client.ConnectAsync
is called passing in options.SSL
which is read from the config file. That value is either or boolean or a string, but neither type is correct. The function requires an enum of type SecureSocketOptions
from MailKit.Security
I think there needs to be a line of code before the connect is called to evaluate the option and set the enum correctly: (Assuming bool type from config)
SecureSocketOptions use-SSL = options.SSL ? SecureSocketOptions.Auto : SecureSocketOptions.None;
Then replace options.SSL with use-SSL in client.ConnectAsync
As a work around I have disabled TLS on my internal MAIL relay. Since it's internal it's not really needed.
Enable SSL / TLS
is unchecked. Mail server doesn't use SSL / TLS. Log: