1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

error if correspondence email is not set

This commit is contained in:
Puyodead1 2023-02-23 23:46:35 -05:00
parent ed5aa51a8f
commit 6daaaf71e6

View File

@ -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,