Skip to content

Commit

Permalink
correct SMTP_ environment variables (#59)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
joshuali925 authored Feb 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 861b7ea commit 8752e67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/arguments.js
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 8752e67

Please sign in to comment.