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;