backend/services/email/logSmtpStatus.js
rui hildt 8614166d64 Send email when adding participant
- create invite email template
- move email config
- implement sendEmail functionality
2020-09-04 12:41:09 +02:00

15 lines
321 B
JavaScript

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