Im trying to send emails in firebase functions with node and nodemailer but google always send this mail to me.

This is my code:
const functions = require('firebase-functions');
const admin = require('firebase-admin');
const nodemailer = require('nodemailer');
admin.initializeApp();
const transporter = nodemailer.createTransport({
service: 'gmail',
host: 'smtp.gmail.com',
port: 465,
secure: true,
auth: {
user: '*****@gmail.com',
pass: '******',
},
});
exports.registerCompany = functions.https.onCall((data, context) => {
return new Promise((resolve, reject) => {
//do somethings
const mailOptions = {
from: 'marcokse24@gmail.com',
to: 'marcokse@hotmail.es',
subject: 'New Register Company',
text: `Company: ${company.name} \nUser: ${user.email}`,
};
transporter.sendMail(mailOptions, function (error, info) {
if (error) {
console.log(error);
} else {
console.log('Email sent: ' + info.response);
}
});
}
}
When I run it on localhost, I don't get the alert or blocking from Google.