From 6daaaf71e6f0a7cf68a36694892adb5dfe8c9825 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Thu, 23 Feb 2023 23:46:35 -0500 Subject: error if correspondence email is not set --- src/util/util/Email.ts | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit 1.4.1