Node js SSL routines wrong version number

I am using Radsytem 8.1.8
Node JS v18.16.0 + Quasar 2.0.0
php v 7.4.33

error trying to send mail

the node js backend show me this:
Executing (default): SELECT id, username, email, photo, phone, user_role_id FROM users AS users WHERE users.id = 6;
Executing (default): SELECT permission AS permission FROM permissions where role_id = 1
Executing (default): SELECT role_name AS role FROM roles WHERE role_id = 1
Executing (default): INSERT INTO news (id,titulo,text,user_id) VALUES (DEFAULT,?,?,?);
Server Request Error [Error: B8040000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:355:
] {
library: ‘SSL routines’,
reason: ‘wrong version number’,
code: ‘ECONNECTION’,
command: ‘CONN’
}

The issue is with the mail server you are using. If you are using a mail service provider such as Microsoft 365, you can set the configuration here: {project root}\nodejs-express-api\helpers\mailer.js, by using the solutions given here: office365 - nodemailer 2.x configuration for Office 365 direct send - Stack Overflow. Or add service: "Outlook365",

var nodemailer = require('nodemailer');
var config = require('../config.js');

module.exports = {
	sendMail: async function (recEmail, subject, msg) {
		let transporter = nodemailer.createTransport({
			service: "Outlook365",
			host: config.mail.host,
			port: config.mail.port,
			secure: config.mail.secure,
			auth: {
				user: config.mail.username,
				pass: config.mail.password
			}
		});

		let sender = `"${config.mail.sendername}" <${config.mail.senderemail}>`
		let mailOptions = {
			from: sender,
			to: recEmail,
			subject: subject,
			html: msg
		};
		const info = await transporter.sendMail(mailOptions);
		return info;
	}
};