From cb792c39df4e833963059061eb1ae58e89f08361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Thierry=20K=C3=A9chichian?= Date: Tue, 19 Dec 2023 10:44:33 +0100 Subject: [PATCH] Missing SmtpSettings Options Setup (#14920) --- .../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))