Skip to content

Commit

Permalink
Missing SmtpSettings Options Setup (OrchardCMS#14920)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkech authored and urbanit committed Mar 18, 2024
1 parent 5a1fb30 commit cb792c3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit cb792c3

Please sign in to comment.