16 lines
414 B
JavaScript
16 lines
414 B
JavaScript
const smtpTransporter = require('./smtpTransporter');
|
|
|
|
function smtpStatus() {
|
|
smtpTransporter.verify(function (error, success) {
|
|
if (error) {
|
|
console.log(error);
|
|
return `SMTP is not working, check your configuration.`
|
|
} else {
|
|
console.log('Server is ready to take our messages');
|
|
return `SMTP is correctly configured.`
|
|
}
|
|
});
|
|
}
|
|
|
|
module.exports = smtpStatus;
|