Skip to content

Commit

Permalink
Set the local domain if the Application URL is set for the HELO or EH…
Browse files Browse the repository at this point in the history
…LO commands. #2636
  • Loading branch information
tidusjar committed Feb 16, 2019
1 parent 276775b commit bf94b31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Ombi.Notifications/GenericEmailProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.Extensions.Logging;
using MimeKit;
using Ombi.Core.Settings;
using Ombi.Helpers;
using Ombi.Notifications.Models;
using Ombi.Notifications.Templates;
using Ombi.Settings.Settings.Models;
Expand Down Expand Up @@ -56,6 +57,11 @@ public async Task SendAdHoc(NotificationMessage model, EmailNotificationSettings

using (var client = new SmtpClient())
{
if (customization.ApplicationUrl.HasValue())
{
client.LocalDomain = customization.ApplicationUrl;
}

if (settings.DisableCertificateChecking)
{
// Disable validation of the certificate associated with the SMTP service
Expand Down

0 comments on commit bf94b31

Please sign in to comment.