rui hildt
8614166d64
- create invite email template - move email config - implement sendEmail functionality
15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
const transporter = require('./transporter');
|
|
|
|
function logSmtpStatus() {
|
|
transporter.verify(function (error, success) {
|
|
if (error) {
|
|
console.log('SMTP is not working, check your configuration.');
|
|
return ``;
|
|
} else {
|
|
console.log('SMTP is correctly configured.');
|
|
}
|
|
});
|
|
}
|
|
|
|
module.exports = logSmtpStatus;
|