-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Set smtp settings though appsettings.json #6264
Comments
Duplicate of #6036 so yes, but we need to figure out how the ui copes :) You can set them yourselves (I think @Piedone included a link in the issue) by registering your own Edited Maybe we should just consider moving the email password / smtp server completely out of the ui and into I'm guessing it's the server / passwords that you're wanting to set @jersiovic ? |
You can set all the SMTP settings from configuration, including appsettings. If you want to do that from code the example there is actually for Having SMTP settings on the UI too is useful, I'd be very much against removing it. |
If I configure smtp settings from the UI, sending email works (to a file). If I don't configure the smtp settings from the UI and use this appsettings.json: { |
@cesarktp is a felllow at the IT deparment I'm trying to make he falls in love with Orchard. |
I wanted to update the docs first as an answer :D. This won't work by default. Maybe the docs is misleading, as was my message but unless the module specifically supports it you won't be able to just add such static configs. For every module supporting |
Ok very clear. we will do as you explain. Thank you! |
So I think this confusion is cleared up. Added some clarification to the docs too. |
Is it possible to set smtp settings though appsettings.json and by extension by environment vars?
We tried it without success?
If not, would you accept a PR to allow that?
The text was updated successfully, but these errors were encountered: