PHP Save Form Data into Database and Send Email to Admin using GMAIL SMTP | With AJAX
HTML-код
- Опубликовано: 22 апр 2020
- Hello everyone! Welcome to my PHP Save Form Data into Database and Send Email to Admin using GMAIL SMTP video. In this video, I have show you how you can save any form data into a database with and without ajax. After save data we will send form data to the admin email id.
Learn PHP Online with Me:- bit.ly/LearnPHPOnline
To help and support me(Donate Me):- bit.ly/DonateProgrammingWithV...
Download Source Code:- bit.ly/phpGmailSMTP
#PHP #SMTP #PHPSMTP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅Subscribe: / @programmingwithvishal
I am a Digital Marketer by passion and a Developer by profession. With experience and expertise spanning around 10 years, in the Digital space.
Good amount of experience in development of web applications using PHP, .Net, JavaScript Library’s, Frameworks, CMS, API’s, Reporting tools and Payment Gateways. Skilled in digital viral marketing, technology innovation's, brand building and all phases of the Web development lifecycle with an expert in translating business requirements into technical solutions and fanatical about quality, usability, security, and scalability. Dealing with and resolving problems and issues which arise.
14:24 line 17 is $mail->Port instead of $mail->Post
really a good video to see on backend thankyou so much
Jab me hosting kar raha hu toh error aa raha hai -- Illegal string offset 'SMTP connect() failed.
?????
Localhost me code run ho raha hai but jab me host kar hu toh error aa raha hai??
Call to undefined method PHPMailer setfrom me aarha ???
@@ramaaryan9849 hats off sir.. Very helpfull
Sir submit karne par error aa raha h
Uncaught phpmailerException: you must provide at least one recepient email address. In c\xampp\htdocs\phpgmail\smtp\class.phpmailer.php: 1243 stack trace #0
c\xampp\htdocs\phpgmail\smtp\class.phpmailer.php(1212) : PHPMailer->presend()#1
c\xampp\htdocs\phpgmail\index.php(33) : PHPMailer->send()
Karke solution kya h sir
Ap ka har video bahut hi acha h or samjha mai sab kuch aa jata .Thanks
Thank You very much sir, I've tried many other videos and codes but they didn't explained and coded very well. I found your link and place the code as per your instructions. I've finally succeeded for my website contact us page. Thanks you again for help. :)
Thank you Vishal, this video is great to learn how to create a contact us form.
sir thank you so much
your voice is so sweet
I really appreciate your teaching way
As always thank you so much Sir for the step by step clear information. Apke video ka sabse acha point ye lagta hai ki aap step by step process dikhate ho.
Thanks a lot Ashish for your kind words
गुप्ता सर जी आपका PHP का ज्ञान सचमूच अप्रतिम है आपको लाख लाख धन्यवाद
संजय जी आपका बहुत धन्यवाद, इतने सुन्दर शब्द लिखने के लिये.
Vishal bhai Zarardast. thank you for your tutorial
Vishal bhai i am from pakistan,your video is very very great full realy so nice
thank you sir ji SMTP ki ye lesson ke liye
thank you so much sir
very helpful god bless you sir
i am from Pakistan ! i really appreciate your efforts for teaching us in such a detailed and explanatory way ! Thankyou
Thanks a lot Umar.
Thanks alot sir !
You taught very well and the video is really benificial for me .
Welcome Sumit
Loved this tutorial,
Sir mind blowing all tutorial. Me aapka fan ho gaya
Thanks Ashish
nice video on PHP contact form clearly explained all the concepts used in this .....
Thanks a lot
wonderful explinations sir
Thanks bhai! aapne kaafi help ki. :)))
thanks so much sir its working 100%..............wowwwwwwwwwwww kya bat.........very good
Really you are doing great job Vishal ji.
I have implemented this. its really saved my time... Thanks
Thanks a lot Vaibhav
Sir, you have done a great work!❤️👍
Thanks a ton
thanku sir, its workng on localhost as well as server.
Bohot barhia.. keep it up. we always with you.
Thank you so much 😀
Good explain in video thanks alot sir
Great work sir
Thank you Sir. Aap hamesha HTML ki bani hue template use karte hain, usse mujhe bahut help mili Sir. Jab maine company main job start ki toh maine template pe code bahut easy se kar payi. Pahle mujhe lagta hai ki aap galat karte ho html bhi khud banana chaiye per ab samaj aaya company main join karke ki yaha toh bani hue template pe kaam karna hota hai. Thanks a lot Sir for wonderful video
Thanks a lot Riva for your kind words and support
aur me ye soch kr templates pe kaam ni krta tha ki shayad ye galat tarika hota hae par still me asani se template pe kam kr leta hun par man me yahi thinking hoti thi ki shayad ye galat ho par this comment make me fareless
thanks RIva
thank you sir🤗
You are an excellent knowledge in php
Thanks a lot
finally after full day of trying different videos your method worked so easily love it thanks sir
edit: i want to sent the carbon copy of the form to the sender how can i do that? please provide the code thanks.
Thank you so much 🙏🙏
Really you are doing great job Vishal Sir,
Sir, Now php 8 released Please create a video on this topic.
Thanks a lot for explained in details
Welcome
Thanks bhaiya
Very useful video.As always!!
Thanks Neha.
Thanks
Always thanks sir garments shop project
Thanks Mahesh.
E-Com website maine already banayi hai, garments shop wali bhi waise hee hogi.
sir very help full video , thank you sir
Most welcome
@@ProgrammingwithVishal SIR KAYA ASA HOGA, KOI AGAR INDIA K BAHAR, MERA WEBSITE VISIT KORE TO, USSNE JAHA SE VISIT KIAYA HEY FIRST USS KO USSI COUNTRY KI PRODUCT PEHELE DEKHAI DE...
sir video m etna interest ban jata hai ki jab ap like krne k liye bolte ho to video pause krne k mn hi nhi krta bss dakho dakho or dakho thanku sir
Hahaha. Thanks Pankaj for your lovely comment.
Vishal sir ur awsome :)
Thanks Abhishek.
thanks
Welcome
Thanks sir
Welcome
Great One.Please explain about use of elastic search in ecommerce using php.
Sure will do soon,
@@ProgrammingwithVishal Will be a great help sir.
thank you sir .........nice......... please make tutorials on bootstrap ........
Welcome and Noted
Thank you sir for your video , please any tutorial on whatsapp using php and mysql. thanks for wonderful tutorial
Thanks Eric. Here are whatsapp video ruclips.net/video/L5w7GuXTI50/видео.html
Sir , you have done great work.
I request you to please develop mini online exam portal in Core php with security and with all functionalities of student and teacher .like as create exam asd ques , set date and time,timer, one que at a time and save result in database to teacher. Pls Sir . thank you.
Sure Ajay
Great
Thanks
Thank u sir.. It's very useful.. Kya hum simple php ka mail function use krke mail send nhi kr sktye h??
please countinue that ajax series .
Thanks sir ji,😍
Smpt k folder m Jo file usme SE PHP mailer autoload ki chhod k sb ko hata skte hai kya
Brother... your video is so clear..just one doubt..
@13.19 you have included a Smptp file
Wher can I get that ? Pls advise
In his description source code
👌👌👌👌👌🤗🤗
Thanks alot Sir. can u also make a video on how to send confirmation mail to user after submitting the form please
Welcome.
By same way. Just change admin email id to user email id
@@ProgrammingwithVishal thanks alot sir.many youtubers don't reply, i thought the same, but u replied me 🥰😍
it's your super tutorial. I want to implement it in a codeigniter framework web page. It is saved in the database but no longer sends the email. How can I solve this
hello sir, it works well in localhost, but when i put in liver server it keeps processing, but i get date in db but no notification in mail.
Here when gmail setting are changing then received message 'Access for less secure apps settings' why this type msg give by Google. What SMTP is not secure??
can we do it in a way if someone submitted data an d we just sending data to them without database
Please Help me sir , With the help of your tutorial I am making my project "Handicap Store". but I have encountered one problem. everything works well. otp is also send to dedicated email but send otp button converts to please wait and then enter otp field dont appears.
Gmail feature of "Less secure " not supporting by google...Do we have any alternative ?
If I want to add my business account Id instead of original gmail Id in from address what need to change?
Very knowledgeable video
I have 1 question: If we have to sent mail on domain email address then how we can sent.?
Same way, use that domain smtp details.
Sir I try you code in localhost it work very well
But when I try it on live server it save data in database but didn't send mail. Will u help
Sir there have any way to check email is valid or not in contact form? Urgent
Sir jese aapne gmail smtp usekiya h usse esa lgta h k ye free and easy to use h to sendgrid ko prefer kyu krte h sb ?
Thanks for making this great video.But how to send the multiple emails. For multiple emails this is not working on my side. The email I just add is only sent
Welcome.
Repet the same function, just one change, remove phpmailer library from function to file top.
When did you create database named RUclips
Uncaught exception phpmailerException with message Extension missing openssl'in error bata raja hai
sir ya localhost par kaam kerage?
j query is not working saying jquery funciton is not defined
i have used other links as well but no sucess could you please help me my project got stuck because of this
can i send email with attachement too?
i want to send mail by office 365 account mail id or hostinger id ?
Dear sir me chahatahun ki mera mail pe jo data aaye us data ko me mera sql database pe rakhu , ho sakta he kyaa?
mujhe 1 pic, ya doc file bhi sath me bhejna h mail me ... ya 1 link sath me bhejna h to kese jayegi... plz btye
Hi sir, how to send email to 1 lacs users. Which is the best solution?
Sir mai jab phpmailer ka use krke OTP email pr send kr rha hu to ye mail send function 2 OTP generate kr rha hai aur database me bhi do OTP save kr rha hai to sir iska koi solution ho to bataiye
Pls sir bataiye mai 3 din se try kr rha hu but koi solution nhi mila
sir i am totally new and i don't know how to configure smtp and mail server using php. can you make a single video where you can create a html form and submit the data into the data base as well as admin email recive using LOCALHOST and after that how it will configure it into live domain
Thank you for your wonderful videos once again. well i am still having trouble to send email to my account although i get updated to my database. I tried first with sendgrid but was not able to send and again i tried with gmail as smtp host but still its not sending email to my account. As i set my account already as you told in videos but not helping much. Please help me to figure out the real issues with the code. Thank in advance.
No worries! Share your Anydesk or Teamviewer details to my id phpvishal@gmail.com
Sir is the code will work on localhost? I try but it's not working
Sir but I don’t understand how it work when anyone type their mail id and it will be show us their mail with their mail id
Bhai mail to store ho raha hai lekin email not received? i am setting done on my Gmail account still not receive mail
code is not working in live godaddy server pls sir...how to solve
gmail smtp is no more active...any other procedure to accomplish this? please respond. Thanks and Regards.
Is it possible without using Gmail SMTP??
Nyc video sir...
Is it compulsory to activate less secure app. If we want to send email to other person but he didn't change his email settings. Then how would he came to know about our mail. Is their any paid services for sending mail...
Secure app needed from SMTP account only. Means the email id that you are using in SMTP login
There are some errors showing when executed..
Hello dear i am trying to send data to customer, for there order details like if they have order 5 products so how can i send them by email kindly guid me its urgent
Sir, Databse me only 1 hi data save ho raha h .
How to solve sir?
or id ko primary key se hatta rhe h to ...fir all data database me save ho rha h
Sir how to form data send as pdf format in mail ?
Mana sir ya code use kiya ha aap ka download kar ka and aap no jo settings karna ko kha tha mana vo bhi ki ha par ma mail nahi sent kar pa raha hu sir plz
sir, the ajax part is not working correctly! plz help
11:45 for my reference
iske sath document kyse send kare sir please help me
Vishal ji ek question hai ki php mysqli me current date ke record ko find karne ki query kya hai?
Uske liye apko jab bhi koi record db main insert hota hai uske sath date ko insert karna padega. And sql query wahi date se data fetch karna padega.
Sir mere less secure app access ka enable nahi ho raha google ne ab yeh option enable ka hata diya hai mein kiss tarhe yeh ker sakti hu iske karan mail nahi aa raha mere pass can you please reply
Sir ya Aa rahi ha
This page not working
Is currently unable to handle this request
Http errors 500
Hello sir
Mujhe ek error aa raha hai jab me mail send kar rahi hu tab fatal error jo phpmailerEXception: SMTP connect() failed bata raha hai
Kaise solve karu please reply
Setfrom error aarha ...undeefined method PHPMailer aarha
code is working but mail not send plz reply
How Create Database at localhost
i can't find less secure apps option in my google account
Check Solution ruclips.net/video/vswB4BMqqI8/видео.html
How to validate the form...because empty data is also get filled
Use html5 validation
Contact page Mai file attached kor Kay .. data ko database send and email kayse kory