mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 18:32:33 +01:00
error if correspondence email is not set
This commit is contained in:
parent
ed5aa51a8f
commit
6daaaf71e6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user