Commit 567baf28 authored by Johannes Zellner's avatar Johannes Zellner

SMTPS port is not required

parent 8253aa11
......@@ -15,7 +15,7 @@ module.exports = exports = {
run: run
};
const CAN_SEND_EMAIL = (process.env.MAIL_SMTP_SERVER && process.env.MAIL_SMTP_PORT && process.env.MAIL_SMTPS_PORT && process.env.MAIL_SMTP_USERNAME && process.env.MAIL_SMTP_PASSWORD && process.env.MAIL_FROM && process.env.MAIL_DOMAIN);
const CAN_SEND_EMAIL = (process.env.MAIL_SMTP_SERVER && process.env.MAIL_SMTP_PORT && process.env.MAIL_SMTP_USERNAME && process.env.MAIL_SMTP_PASSWORD && process.env.MAIL_FROM);
if (CAN_SEND_EMAIL) {
console.log(`Can send emails. Email notifications are sent out as ${process.env.MAIL_FROM}`);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment