summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-02-23 23:46:35 -0500
committerPuyodead1 <puyodead@protonmail.com>2023-02-23 23:59:24 -0500
commit6daaaf71e6f0a7cf68a36694892adb5dfe8c9825 (patch)
tree799db9e366871705e8c3da94ea2a2b882b778d21 /src
parentfix for when secure is set to false (diff)
downloadserver-6daaaf71e6f0a7cf68a36694892adb5dfe8c9825.tar.xz
error if correspondence email is not set
Diffstat (limited to 'src')
-rw-r--r--src/util/util/Email.ts5
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,