2020-09-04 10:41:09 +00:00
|
|
|
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;
|