Set timeout for sending email

Closes #4348
This commit is contained in:
Mark McDowall 2021-04-09 10:38:16 -07:00
parent 7da695bd62
commit 5449389ca5
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,8 @@ namespace NzbDrone.Core.Notifications.Email
{
using (var client = new SmtpClient())
{
client.Timeout = 10000;
var serverOption = SecureSocketOptions.Auto;
if (settings.RequireEncryption)