From 400f6937eaee0483a44a06fbb9746e1fbea6fdc3 Mon Sep 17 00:00:00 2001 From: jtkech Date: Mon, 18 Dec 2023 22:29:58 +0100 Subject: [PATCH] Missing SmtpSettings Options Setup --- .../OrchardCore.Email/Services/SmtpSettingsConfiguration.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Email/Services/SmtpSettingsConfiguration.cs b/src/OrchardCore.Modules/OrchardCore.Email/Services/SmtpSettingsConfiguration.cs index 798ac566247..4d2c9b3ce8d 100644 --- a/src/OrchardCore.Modules/OrchardCore.Email/Services/SmtpSettingsConfiguration.cs +++ b/src/OrchardCore.Modules/OrchardCore.Email/Services/SmtpSettingsConfiguration.cs @@ -1,8 +1,6 @@ -using System; using Microsoft.AspNetCore.DataProtection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using OrchardCore.Entities; using OrchardCore.Settings; namespace OrchardCore.Email.Services @@ -34,11 +32,15 @@ public void Configure(SmtpSettings options) options.PickupDirectoryLocation = settings.PickupDirectoryLocation; options.Host = settings.Host; options.Port = settings.Port; + options.ProxyHost = settings.ProxyHost; + options.ProxyPort = settings.ProxyPort; options.EncryptionMethod = settings.EncryptionMethod; options.AutoSelectEncryption = settings.AutoSelectEncryption; options.RequireCredentials = settings.RequireCredentials; options.UseDefaultCredentials = settings.UseDefaultCredentials; options.UserName = settings.UserName; + options.Password = settings.Password; + options.IgnoreInvalidSslCertificate = settings.IgnoreInvalidSslCertificate; // Decrypt the password if (!string.IsNullOrWhiteSpace(settings.Password))