From 8752e67497b2748e8f8136ce8aff4747e9aca840 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Mon, 19 Feb 2024 09:54:26 -0800 Subject: [PATCH] correct `SMTP_` environment variables (#59) Signed-off-by: Joshua Li --- src/arguments.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arguments.js b/src/arguments.js index 208e92b..d9e4b80 100644 --- a/src/arguments.js +++ b/src/arguments.js @@ -206,8 +206,8 @@ function getOptions(options) { commandOptions.smtphost = options.smtphost || process.env[ENV_VAR.SMTP_HOST]; commandOptions.smtpport = options.smtpport || process.env[ENV_VAR.SMTP_PORT]; commandOptions.smtpsecure = options.smtpsecure || process.env[ENV_VAR.SMTP_SECURE]; - commandOptions.smtpusername = options.smtpusername || process.env[ENV_VAR.USERNAME]; - commandOptions.smtppassword = options.smtppassword || process.env[ENV_VAR.PASSWORD]; + commandOptions.smtpusername = options.smtpusername || process.env[ENV_VAR.SMTP_USERNAME]; + commandOptions.smtppassword = options.smtppassword || process.env[ENV_VAR.SMTP_PASSWORD]; // Set email subject. commandOptions.subject = options.subject || process.env[ENV_VAR.EMAIL_SUBJECT]; @@ -241,4 +241,4 @@ function getHtml(text) { module.exports = { getCommandArguments, getEventArguments -} \ No newline at end of file +}