2020-10-20 19:25:00 +00:00
|
|
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
2020-11-20 10:02:30 +00:00
|
|
|
|
const forcedMail = process.argv.findIndex((s) => s === '--devSendMails') !== -1;
|
2020-10-20 19:25:00 +00:00
|
|
|
|
|
|
|
|
|
module.exports = {
|
2020-11-20 10:02:30 +00:00
|
|
|
|
sendMails: isProduction || forcedMail,
|
|
|
|
|
emailFrom: process.env.MAILSENDER,
|
|
|
|
|
smtpOptions: {
|
|
|
|
|
host: process.env.MAILSERVER,
|
|
|
|
|
port: 587,
|
|
|
|
|
auth: {
|
|
|
|
|
user: process.env.MAILUSER,
|
|
|
|
|
pass: process.env.MAILPW,
|
|
|
|
|
},
|
|
|
|
|
},
|
2020-10-22 22:41:16 +00:00
|
|
|
|
};
|