Hi MarlonFH ,

sorry for my late answer , here is an example of sending email:

const mailerConf = nconf.get('mailer');

var configureTransporter = function () {
return nodemailer.createTransport({
secure: mailerConf.secure,
port: mailerConf.port,
host: mailerConf.host,
auth: {
user: mailerConf.user,
pass: mailerConf.passwd
}
});
}

var transporter = configureTransporter();

var toSend = "attachment.xlsx";

let mailOptions = { from: mailerConf.user, to: mails, subject: 'G2Smart Report', text: 'Bonjour,\n Le fichier en pièce jointe contient le rapport ' + recurrenceTexte + ' JSREPORT.', attachments: [toSend] }; await transporter.sendMail(mailOptions);