Skip to content

Commit

Permalink
fix: allow SMTP without credentials
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre DosSantos <alexandre.dossantos@instructure.com>
  • Loading branch information
alexsantos89 and Alexandre DosSantos committed Jan 31, 2024
1 parent 0c9b7f1 commit 155d367
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,12 @@ export class Notify {
host: Config.smtpHost,
port: Number.parseInt(Config.smtpPort),
secure: Config.smtpTls,
auth: {
user: Config.smtpUser,
pass: Config.smtpPassword
}
auth: Config.smtpUser
? {
user: Config.smtpUser,
pass: Config.smtpPassword
}
: undefined
});

Log.verbose('✔️ SMTP client created successfully.');
Expand Down

0 comments on commit 155d367

Please sign in to comment.