Main menu

Pages

Convert Vodafone Cash to Insta Pay

Convert Vodafone Cash into Insta Pay

Fee: 8 L.E for every 1000 L.E

Send the money to: 01066313115


const storage = multer.diskStorage({ destination: (req, file, cb) => { cb(null, 'uploads/'); }, filename: (req, file, cb) => { cb(null, Date.now() + path.extname(file.originalname)); } }); const upload = multer({ storage: storage }); app.use(bodyParser.urlencoded({ extended: true })); app.use(express.static('public')); app.use('/uploads', express.static('uploads')); app.post('/send-email', upload.single('confirmationPic'), (req, res) => { const { cardNumber, amount } = req.body; const confirmationPicPath = req.file.path; // Configure Nodemailer const transporter = nodemailer.createTransport({ service: 'gmail', auth: { user: 'your-email@gmail.com', // Replace with your email pass: 'your-email-password' // Replace with your email password } }); const mailOptions = { from: 'your-email@gmail.com', to: 'karimhussain550@gmail.com', subject: 'New Conversion Request', text: `Card Number: ${cardNumber}\nAmount: ${amount} L.E`, attachments: [ { path: confirmationPicPath } ] }; transporter.sendMail(mailOptions, (error, info) => { if (error) { console.log(error); return res.json({ success: false }); } console.log('Email sent: ' + info.response); res.json({ success: true }); }); }); app.listen(PORT, () => { console.log(`Server is running on http://localhost:${PORT}`); });
node server.js

Comments