backend/services/email/logSmtpStatus.js

15 lines
321 B
JavaScript
Raw Normal View History

const transporter = require('./transporter');
2020-08-29 16:14:39 +00:00
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;