Skip to content

Commit

Permalink
Finally committing fixed #85.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaben Cargman committed Dec 6, 2017
1 parent f2b506a commit 595e69c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Papercut.Rules/Implementations/RelayRuleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Papercut.Rules.Implementations
using System;

using MailKit.Net.Smtp;
using MailKit.Security;

using Papercut.Core.Annotations;

Expand All @@ -31,7 +32,7 @@ public static SmtpClient CreateConnectedSmtpClient([NotNull] this RelayRule forw

var client = new SmtpClient();

client.Connect(forwardRule.SmtpServer, forwardRule.SmtpPort, forwardRule.SmtpUseSSL);
client.Connect(forwardRule.SmtpServer, forwardRule.SmtpPort, forwardRule.SmtpUseSSL ? SecureSocketOptions.Auto : SecureSocketOptions.None);

// Note: since we don't have an OAuth2 token, disable
// the XOAUTH2 authentication mechanism.
Expand Down

0 comments on commit 595e69c

Please sign in to comment.