backend/helpers/logSmtpStatus.js

15 lines
337 B
JavaScript

const transporter = require('../services/email/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;