Deleted useless files such as backend, node_modules and package-lock. Modified readme.

This commit is contained in:
K
2025-02-23 09:04:05 +05:30
parent 699bcb9d2c
commit 3f9e6d3dee
406 changed files with 1 additions and 119215 deletions
-25
View File
@@ -1,25 +0,0 @@
const nodemailer = require("nodemailer");
const sendEmail = async (options) => {
const transporter = await nodemailer.createTransport({
service: "gmail",
host: process.env.HOST,
port: process.env.EMAIL_PORT,
secure: false,
auth: {
user: process.env.SMPT_MAIL, // senders email
pass: process.env.SMPT_PASSWORD, // app passoword created for your app by using step :: google account> manage your google account >security>enable two step verification > search app password and create password for your app
},
});
const mailOptions = {
from: "",
to: options.email,
subject: options.subject,
text: options.message,
};
await transporter.sendMail(mailOptions);
};
module.exports = sendEmail;