quick question about my game development: Users will input their login info, and then the game app sends an email verification. Is it safe to use my personal email for this?
const sendMail = async (email, mailSubject, content) => {
try {
const transport = nodemailer.createTransport({
service: 'gmail',
host: 'smtp.gmail.com',
auth: {
user: process.env.SMTP_MAIL,
pass: process.env.SMTP_PASSWORD,
},
});
const mailOptions = {
from: process.env.SMTP_MAIL,
to: email,
subject: mailSubject,
html: content
}
transport.sendMail(mailOptions, function (error, info) {
if (error) {
console.log(error)
} else {
console.log('Mail sent successfully:-'.info.response);
}
});
} catch (err) {
console.log(err.message);
}
}
1