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

SmtpClient default credentials #328

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

aiscrim
Copy link
Contributor

@aiscrim aiscrim commented Jul 31, 2019

If SmtpConfiguration.Password was not configured, set SmtpClient.UseDefaultCredentials = true. This way the credentials to send the email will be those of the user running the Identity Server.

Fix: Catch all exception types when trying to send an email: if for example the configured Login is not valid, the exception thrown will not be an SmtpException, but it will be still worth logging.

…efaultCredentials = true. This way the credentials to send the email will be the those of the user running the Identity Server.

Fix: Catch all exception types when trying to send an email: if for example the configured Login is not valid, the exception thrown will not be an SmtpException, but it will be still worth logging.
@skoruba skoruba self-requested a review September 16, 2019 09:25
Copy link
Owner

@skoruba skoruba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you! :)

@skoruba skoruba merged commit 9ff4d81 into skoruba:dev Sep 16, 2019
@skoruba skoruba mentioned this pull request Jan 13, 2020
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