Update mail_utils.js

This commit is contained in:
Alessandro Ferro 2024-03-08 09:18:08 +01:00
parent 696d1b8b7b
commit 0626cd02c8
1 changed files with 1 additions and 3 deletions

View File

@ -21,12 +21,10 @@ function sendConfirmationLink(destinationEmail, confirmationLink) {
} }
function sendMail(mailOptions) { function sendMail(mailOptions) {
// Send mail with defined transport object
transporter.sendMail(mailOptions, (error, info) => { transporter.sendMail(mailOptions, (error, info) => {
if (error) { if (error) {
return console.error(error); console.error(error);
} }
console.log('Message sent: %s', info.messageId);
}); });
} }