We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When setting SMTP_SECURED=false, dotenv treats all values as string.
SMTP_SECURED=false
dotenv
Then it's used as a bool in lib/connections/nodemailer.js like so:
lib/connections/nodemailer.js
const smtpConfig = { host: process.env.SMTP_HOST, port: process.env.SMTP_PORT, secure: process.env.SMTP_SECURED, auth: { user: process.env.SMTP_USER, pass: process.env.SMTP_PASS } };
I'm pretty sure it's always true in this case... It makes it not possible to set to false.
true
Also, please add ignoreTLS value to smtpConfig parameters so we can use simple email relay servers for internal LRSes.
ignoreTLS
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @ivoloshin,
I've patched in this PR and added the TLS flags as well. Should be released as v2.2.2 shortly once tests pass.
Sorry, something went wrong.
Fixed in https://github.com/LearningLocker/learninglocker/releases/tag/v2.2.2
No branches or pull requests
When setting
SMTP_SECURED=false
,dotenv
treats all values as string.Then it's used as a bool in
lib/connections/nodemailer.js
like so:I'm pretty sure it's always
true
in this case... It makes it not possible to set to false.Also, please add
ignoreTLS
value to smtpConfig parameters so we can use simple email relay servers for internal LRSes.Thanks!
The text was updated successfully, but these errors were encountered: