diff options
author | Puyodead1 <puyodead@protonmail.com> | 2023-02-23 23:46:35 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@protonmail.com> | 2023-02-23 23:59:24 -0500 |
commit | 6daaaf71e6f0a7cf68a36694892adb5dfe8c9825 (patch) | |
tree | 799db9e366871705e8c3da94ea2a2b882b778d21 | |
parent | fix for when secure is set to false (diff) | |
download | server-6daaaf71e6f0a7cf68a36694892adb5dfe8c9825.tar.xz |
error if correspondence email is not set
Diffstat (limited to '')
-rw-r--r-- | src/util/util/Email.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/util/Email.ts b/src/util/util/Email.ts index 5610b56e..8575e7b2 100644 --- a/src/util/util/Email.ts +++ b/src/util/util/Email.ts @@ -64,6 +64,11 @@ const transporters = { "[Email] SMTP has not been configured correctly.", ); + if (!Config.get().general.correspondenceEmail) + return console.error( + "[Email] Correspondence email has not been configured! This is used as the sender email address.", + ); + // construct the transporter const transporter = nodemailer.createTransport({ host, |