Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing SmtpSettings Options Setup #14920

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Missing SmtpSettings Options Setup #14920

merged 1 commit into from
Dec 19, 2023

Conversation

jtkech
Copy link
Member

@jtkech jtkech commented Dec 18, 2023

SmtpSettingsConfiguration : IConfigureOptions<SmtpSettings> gets SmtpSettings from Site Settings to setup an SmtpSettings as options allowing to inject these settings through IOptions<SmtpSettings>.

But some fields (I assume new fields) are not setup, so when injecting IOptions<SmtpSettings> as it is done in SmtpService these fields are not retrieved (unless if set by another tenant configuration).

@hishamco For example, how can we expect that SmtpService retrieve IgnoreInvalidSslCertificate through IOptions<SmtpSettings> if it is not set in SmtpSettingsConfiguration.

@hishamco
Copy link
Member

You're right JT

@hishamco hishamco merged commit 4520c45 into main Dec 19, 2023
3 checks passed
@hishamco hishamco deleted the jtkech/SmtpSettings branch December 19, 2023 09:44
urbanit pushed a commit to urbanit/OrchardCore that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants