mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Set the local domain if the Application URL is set for the HELO or EHLO commands. #2636
This commit is contained in:
parent
276775ba82
commit
bf94b3111e
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,7 @@ using MailKit.Net.Smtp;
|
|||
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;
|
||||
|
@ -56,6 +57,11 @@ namespace Ombi.Notifications
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue