summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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,