diff --git a/index.js b/index.js
index 75bad146a..7b5627e83 100644
--- a/index.js
+++ b/index.js
@@ -65,6 +65,49 @@ app.use('*', (req, res) => {
res.json({ msg: 'no route handler found' }).end()
})
+var contactMail = nodemailer.createTransport({
+ service: 'gmail',
+ auth: {
+ user: 'hamza.nawabi119@gmail.com',
+ // pass: 'tvkfkmfywdghpvat'
+ pass:"kkmaxsjegmagwrmw"
+ }
+});
+contactMail.verify((error)=>{
+ if(error){
+ console.log(error)
+ }else{
+ console.log("your message Send it")
+ }
+})
+app.post("/",(req,res)=>{
+ // res.send("post methode")
+ // var emailto =" hamza.nawabi119@gmail.com "
+ const name = req.body.name
+ const email = req.body.email
+ const subject = req.body.subject
+ const message = req.body.message
+ var emailto = "h.nawabi007@gmail.com"
+ const mail = {
+ from:"hamza.nawabi119@gmail.com",
+ to:emailto,
+ subject:"message Send From The online shop",
+ html:`
+ User_Name:${name}
+ User_Mail:${email}
+ Subject:${subject}
+ Message:
${message}