For those of you using PHP 7+ use: $email = mysqli_real_escape_string($con, $_POST['email']); instead of email = $con->real_escape_string($_POST['email']); Also check if your path is right if you have problems with the PHPMailer; you really need to use: use PHPMailer\PHPMailer\PHPMailer; no matter what your webspace path is or whatever
@@SenaidBacinovic dont worry man, well im start sharing to all my programming mates and non programmer also.. my mind just messed up when looked into very great but underrated it sources like this.. hope 2020 u reach thousands even million subs man, god bless u
Hi, thanks for the files that i could download. I have tried using these files online for my website where the PHPversion is 7.0 and above. i have no idea whats wrong as i am not a programmer. I have done everything according to your video and customised the files to access the database. it registers the user in the database but it fails to send the verification email and gives an HTTP error 500. not sure what that means but i am stuck. would be great if you can help me. Thank you.
Q1.just want to ask that if we run this project in windows so then what is the procedure, what changes we have to perform? Q2.where you give the path of gmail in this tutorial..
Can you explain to me, please, why you are named your filed as .php. Why you did that and why you didn't create new file as .php and connect it with a html file. Thanks!
I want that a page only show who's personal who is verified email else not.. nit for login and registration. Or we can also do this send email to admin from website but before verify your personal /original email. Where in your sent email FROM would be your verified email. Is it possible?
very nice i really love your tutorial made easy for me but i am have a problem on The mbstring extension is missing. Please check your PHP configuration. which is not working on my system kali liunx i have try all i can but i could fix it i hope to get help from your Tutoria
Hi! Thank you for your great tutorial. But I have one problem: I want to add some input fields (e. g. first name) and I added these fields in the database and all other files. But I can't submit the form to get the confirmation email. Would you have a little tip for me here? Many Thanks!
Hi friend... I ove your coding pattern. It is very simple and perfect and easy to understand. I have learned so much from your tutorial. Thank u so much...
Hello sir.. I am a codeigniter developer for last 1.5 years and i am continuously doing project in codeigniter but i want to learn new technology for future growth. So can you suggest me the technology which i have learned so that it is best for my future growth and i can improve my career?? Please suggest me....
Can someone assist me here please as I am new to database but have been following a tutorial on php oop series and I have a different code but on my form, i have the following codes: div id="register">
Coding Passive Income Error: "please check your inputs", I rechecked so many times same error is repeating. I uploaded all the files as it is and created a data base connection, and replaced "setfrom:" with my email id, plz help
now coding is working fine, but after submitting the form iam getting error " Warning: escapeshellcmd() has been disabled for security reasons in /storage/ssd4/104/4767104/public_html/emailverification/PHPEmailConfirmation/PHPMailer/PHPMailer.php on line 1584" link:throbless-transmiss.000webhostapp.com/emailverification/PHPEmailConfirmation/register.php
Hey man, is it a Quick change to only make the email expire after 15 minutes? Like the token is invalid after 15 minutes and removes the user from the database?
Hello sir, thank you very much for the code source, i just wanna ask something, i have an error in my xampp. The error said uncaught error : class phpmailer exception not found. Can you tell me to solve this please. Thanks before, you're my hero!
Sir, When I tried to register a new member using the file register.php then following two error message appeared on the screen: (1) Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in C:\wamp64\www\ec\PHPMailer\PHPMailer.php on line 1568. (2) Error: Class 'PHPMailer\PHPMailer\Exception' not found in C:\wamp64\www\ec\PHPMailer\PHPMailer.php on line 1568. However, this member was registered in the database. But no email was found in the email id provided during registration. I am using localserver on WAMPServer. Can you help me. Regards,
hello sir thank you for explaining and I wanted you to make video on pricing widget and how to assign a id/token to it. so If anyone purchase one of the pack out of three then he/she will assign a id and after purchasing the pricing will see after the duration of the pack. so please sir help me to make a pricing table
Links sent via email asking you to click to verify only appear as links if you give a gmail email address. If you use hotmail or yahoo mail, the 'link' will be text only.
how can i stop someone to register if his/her email already exists because if this error is thrown insert query still executes to insert duplicate record??? Please help sir..
Those who receive a fatal phpmailer error when submitting "Register", you should include the following chunk of code in the beginning of php script: use PHPMailer\PHPMailer\PHPMailer; require('PHPMailer/PHPMailer.php'); require('PHPMailer/SMTP.php');
It is a really nice and informative video. I just wondering if a pro would make it as you are doing or the pro would use oop and classes. If so, could you make a video based on this video. How would you approach it. Please don’t get me wrong, just a question. Love your videos:)
Thank you Sajid for nice words. This tutorial is for beginners, and it would be very challenging for them to learn this by using OOP approach. However, it would definitely be cleaner and better to use OOP.
hey thanx for the video and i love your work i have tested the code and it works but the problem is the email is sent in spam/junk. What could be the cause and how can i solve this problem? thanx again in advance
Firstly thank you for the video man I have a problem and can't find what is that. Error is like Class 'PHPMailer\PHPMailer\Exception' not found in C:\xampp\htdocs\challenge-league\PHPMailer\src\PHPMailer.php on line 1671
Ajao Temitayo yes I have done. Just copy the code from the git paste it to your php file.If any error occurs such as Smtp connection then try to upgrade php version.
Sir how can we send an email through php with attachment in our website form. I'm trying to make a upload cv form with php but it's not working the file is uploading but it's having problem while sending..
hye sir. Thank you for your amazing video. But after sign up, my php display ‘cannot load exception’ . And its come from phpmailer.php. But its already insert into database but, the email not sent for verification. Please help me sir . Tq
hey if someone can help I had the error class not found wich is fixed by adding: include_once 'PHPMailer/Exception.php'; but now every thing looks fine but it goes to else { $msg = "Something wrong happened! Please try again!"; } any ideas? please help!
Zašto neće da radi na wampp serverua. Skinuo sam i tvoj kod ali isto. Stalno: "Something wrong happened! Please try again!" Ali u bazi se pojave podaci?
Nisam. Probat ću. Na neki način sam prje slao email po nekom lindy-nom tuutorialu od Kevina Skouglanda. U svako sulučaju hvala ti. Nešto radim i ovo mi je baš trebalo. Odlični tutoriali.
Firstly I registered and then login with verification, alerts says, verify firstly. It's great but after when I confirm email and without enter email or password when I enter login button it's logged in. Why? how I fix this...
Bro whenever i click the verification link in the email received it does not set active status to 1 and token to null. However i just used the same logic from your video for confirm.php, please help me as I am stuck in this problem for more than 3 days even google was unable to help. BTW, nice tutorial.
I can't seem to get the password_verify bool to say true. I got everything else working, but not that. I know I'm typing in the correct test password that I registered with, but it just won't verify. Any suggestions?
I figured it out. I had the mysql password column set to 50 chars. Not enough for the minimum 72 characters required for password BCRYPT. Great tutorials, thank you so much!
Hi, am a student working on my final year project and I found your video of email validation and verification interesting , after trying the code and changing Mail function in xampp php. Ini the mail is still not sending to the users
Hello Senaid, loved the tutorial!! However, when i am running the registration form, i get the success message but i am not getting any email confirmation.
Email confirmation activity for registration is working...I got the mail... But there is notice of trying to get property of non object And warning of escapeshell() has been disabled for security reasons And also my database is not update when input is done in registration form... Help me sir
i wrote this code on my server, but there is nothing happen. i'm not get email at all.. so i read comments on this video, and my question is.. is smtp can do thing like this? please answer me quickly sir.. thanks
How can I make this work locally with gmail settings intergration? without the need of a hosting server, I followed but I get "something went wrong error!" on register. Thank you Sir.
All you need to do is to update your PHP server, because password_hash() exists for PHP 5.5.0+ versions. If you're using some shared hosting, just go to cPanel -> PHP Selector and update it. EDIT: There is possibility that you will have some problem with PHP functions because some of them might not exists in new version of the PHP, so please first check that compatibility first OR be prepared to switch it back if you have problems.
i had this error: Warning: escapeshellcmd() has been disabled for security reasons in /storage/ssd5/744/1199744/public_html/PHPMailer/PHPMailer.php on line 1597 how to fixed it?
Do you want to become a web developer from scratch??? Check this: bit.ly/devAccelerator
does it matter if im using my SQLI
@@tigerc572 No
Sir is the course noe free
Do you need PHPmailer on a webserver or only for localhost?
some code are not working like use PHPMailer/PHPMailer/PHPmailer ;
when I open browser it's show me error, but how may i do
For those of you using PHP 7+ use: $email = mysqli_real_escape_string($con, $_POST['email']); instead of email = $con->real_escape_string($_POST['email']);
Also check if your path is right if you have problems with the PHPMailer; you really need to use: use PHPMailer\PHPMailer\PHPMailer; no matter what your webspace path is or whatever
I wonder you keep on moving forward creating wonderful educational stuffs. You are amazing tutor the real Guru
Yes, there are 100 more videos planned just for 2018 :)
This is incredible Senaid. Good work! Please keep it up......
Thank you so much! Appreciate the support. :)
im just subs man!! this is very great channel!! keep posting broo
Thank you :)
@@SenaidBacinovic dont worry man, well im start sharing to all my programming mates and non programmer also.. my mind just messed up when looked into very great but underrated it sources like this.. hope 2020 u reach thousands even million subs man, god bless u
@@mrjean9376 That means a lot, thank you so much. In 2020 there will come a lot of amazing content (weekly). :)
Is there a way to incorporate 'forgotten your password' code into this?
Thank you from Thailand.
My pleasure and thank you from Bosnia.
Hi, thanks for the files that i could download. I have tried using these files online for my website where the PHPversion is 7.0 and above. i have no idea whats wrong as i am not a programmer. I have done everything according to your video and customised the files to access the database. it registers the user in the database but it fails to send the verification email and gives an HTTP error 500. not sure what that means but i am stuck. would be great if you can help me. Thank you.
hvala, ovo je bas sta sam trebo
what link would I use for the email confirmation
Please can you help me to find out when we sending one email to two recipients how to identify who click the verify button from that two?
idk what should i put here $mail->setFrom();
and i dont understand this too $mail->Body = ""
nice tutorial btw. i will recommend this to my friends.
ca marche.. j'ai juste pas comprsi le role du token la dedans??
Q1.just want to ask that if we run this project in windows so then what is the procedure, what changes we have to perform?
Q2.where you give the path of gmail in this tutorial..
Really nice and easy! Good job and thank u so much for code download link! U and your lessons are awesome!
thank you :)
Can you explain to me, please, why you are named your filed as .php. Why you did that and why you didn't create new file as .php and connect it with a html file. Thanks!
I want that a page only show who's personal who is verified email else not.. nit for login and registration. Or we can also do this send email to admin from website but before verify your personal /original email. Where in your sent email FROM would be your verified email. Is it possible?
very nice i really love your tutorial made easy for me but i am have a problem on The mbstring extension is missing. Please check your PHP configuration. which is not working on my system kali liunx i have try all i can but i could fix it i hope to get help from your Tutoria
Hi! Thank you for your great tutorial. But I have one problem: I want to add some input fields (e. g. first name) and I added these fields in the database and all other files. But I can't submit the form to get the confirmation email. Would you have a little tip for me here? Many Thanks!
How do you add recaptcha or hcaptcha to this?
Do you have to connect to mysql again? I think at line 10, you forgot your {} after the if statement?
Great tutorial.👍 What MySQL GUI are you using in this tutorial? Thanks for your great tutorials.
Thank you. I am using www.adminer.org/
hi friend the data or information goes in the database but i dont know why i dont get the email please help and advice
Can You write this in procedural programming? This is object oriented...thanks..it would be very helpful to me..thanks
Great video, it helped me a lot, thank you so much :) keep up the great work my friend :D
Hi friend... I ove your coding pattern. It is very simple and perfect and easy to understand. I have learned so much from your tutorial. Thank u so much...
thank you :)
Hello sir.. I am a codeigniter developer for last 1.5 years and i am continuously doing project in codeigniter but i want to learn new technology for future growth. So can you suggest me the technology which i have learned so that it is best for my future growth and i can improve my career?? Please suggest me....
Great job, thanks for shared.
Thank you
Hi sir, I hope I will be able to send email verification otp code to users that signup on my website using this method?
Can someone assist me here please as I am new to database but have been following a tutorial on php oop series and I have a different code but on my form, i have the following codes:
div id="register">
Thanks Bro, working perfectly helped me lot. Thanks again
thank you :)
Thank you
You're welcome, it's my pleasure.
Coding Passive Income
Error: "please check your inputs", I rechecked so many times same error is repeating. I uploaded all the files as it is and created a data base connection, and replaced "setfrom:" with my email id, plz help
Can you show me the code?
now coding is working fine, but after submitting the form iam getting error "
Warning: escapeshellcmd() has been disabled for security reasons in /storage/ssd4/104/4767104/public_html/emailverification/PHPEmailConfirmation/PHPMailer/PHPMailer.php on line 1584" link:throbless-transmiss.000webhostapp.com/emailverification/PHPEmailConfirmation/register.php
Hey man, is it a Quick change to only make the email expire after 15 minutes? Like the token is invalid after 15 minutes and removes the user from the database?
Got a lot of errors in the source code. input fields were not ok, phpmailer error..
will it work using localhost? if not, is there a way to have this email confirmation work in localhost? thank you
Yes, it can work if you're sending via SMTP (the easiest way).
Coding Passive Income thanks for the reply ~
What phpmailer for?
Can you create a video of users to verify their email with opt verification without any software
it shows something wrong happened after i enter those inputs can you help me with those who knows how to fix it?
nice video sir. it helped me a lot, thank you so much..
Can we do it in local host??
please What is the name of your text editor sir
PhpStorm
Thank you so much.
thank you :)
Thank you
100% working
My pleasure.
Did you hear something about SQL injections?
Hello sir, thank you very much for the code source, i just wanna ask something, i have an error in my xampp. The error said uncaught error : class phpmailer exception not found. Can you tell me to solve this please. Thanks before, you're my hero!
You're missing some class from PHPMailer, please check how I did it in the code.
@@SenaidBacinovic okay i will check it thank you sir,
what if i don't have a domain and i am only working in localhost. how can i do the verification?
You can send an email from localhost easily by using SMTP.
@@SenaidBacinovic i just found out that few minutes ago. Thank you very much for your effort!
My pleasure, enjoy it. :)
@Coding Passive Income How to send an email from localhost easily by using SMTP?
Nice tutorial, thank you
Thank you :)
sir you are awesome realy
Thank you, you are amazing too!
Thank you very much from Bangladesh.
আবুল বাশার thank you :)
Sir,
When I tried to register a new member using the file register.php then following two error message appeared on the screen:
(1) Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found in C:\wamp64\www\ec\PHPMailer\PHPMailer.php on line 1568.
(2) Error: Class 'PHPMailer\PHPMailer\Exception' not found in C:\wamp64\www\ec\PHPMailer\PHPMailer.php on line 1568.
However, this member was registered in the database. But no email was found in the email id provided during registration.
I am using localserver on WAMPServer.
Can you help me. Regards,
awesome tutorial thank you
Thank you :)
hello sir thank you for explaining and I wanted you to make video on pricing widget and how to assign a id/token to it. so If anyone purchase one of the pack out of three then he/she will assign a id and after purchasing the pricing will see after the duration of the pack.
so please sir help me to make a pricing table
thanks for this tutorial
My pleasure, thank you :)
Links sent via email asking you to click to verify only appear as links if you give a gmail email address. If you use hotmail or yahoo mail, the 'link' will be text only.
Good job. You made my day
Awesome, I am so happy that I could help you.
how can i stop someone to register if his/her email already exists because if this error is thrown insert query still executes to insert duplicate record??? Please help sir..
Those who receive a fatal phpmailer error when submitting "Register", you should include the following chunk of code in the beginning of php script:
use PHPMailer\PHPMailer\PHPMailer;
require('PHPMailer/PHPMailer.php');
require('PHPMailer/SMTP.php');
Thank you for helping others on this channel!
It is a really nice and informative video. I just wondering if a pro would make it as you are doing or the pro would use oop and classes. If so, could you make a video based on this video. How would you approach it. Please don’t get me wrong, just a question. Love your videos:)
Thank you Sajid for nice words. This tutorial is for beginners, and it would be very challenging for them to learn this by using OOP approach. However, it would definitely be cleaner and better to use OOP.
Everything wirks but i dont recieve an email... plz help.
thank you so much.....
Your are welcome, it's my pleasure
Nice tutorial, i like it...
My pleasure, thank you :)
sir am running on xamp and am getting errors can you help me out
hey thanx for the video and i love your work
i have tested the code and it works but the problem is the email is sent in spam/junk. What could be the cause and how can i solve this problem? thanx again in advance
Thank you. Next week I will publish the tutorial and show how to send an email using SendGrid API, with that one it should never go to the spam. :)
@@SenaidBacinovic cool, i will be waiting on
thank you :)
Thnks sir
No doubt u r awesome.............
Kashish Madaan Thank you :)
Hello sir, thanks for the information, but after i register i am not receiving any mail, no error is showing. please help me out
Firstly thank you for the video man
I have a problem and can't find what is that. Error is like Class 'PHPMailer\PHPMailer\Exception' not found in C:\xampp\htdocs\challenge-league\PHPMailer\src\PHPMailer.php on line 1671
I think you just need to include Exception.php file the same way you included PHPMailer.php. Try it, and let me know how it goes. :)
I have added it and now created a user but no any mail is sent and no error :D
Having the same problem... any luck?
Ajao Temitayo yes I have done.
Just copy the code from the git paste it to your php file.If any error occurs such as Smtp connection then try to upgrade php version.
Okay thank you
Plz. Make video on otp verification with timer,
Sir how can we send an email through php with attachment in our website form.
I'm trying to make a upload cv form with php but it's not working the file is uploading but it's having problem while sending..
How to set up a adminer thing i didnt get that part help please!?
You do not need to use Adminer, you can use PHPMyAdmin :)
hye sir. Thank you for your amazing video. But after sign up, my php display ‘cannot load exception’ . And its come from phpmailer.php. But its already insert into database but, the email not sent for verification. Please help me sir . Tq
hey if someone can help I had the error class not found wich is fixed by adding: include_once 'PHPMailer/Exception.php'; but now every thing looks fine but it goes to
else {
$msg = "Something wrong happened! Please try again!";
}
any ideas? please help!
same problem here
Download does not working
Zašto neće da radi na wampp serverua. Skinuo sam i tvoj kod ali isto. Stalno: "Something wrong happened! Please try again!" Ali u bazi se pojave podaci?
Očigledno da kod radi, a to što ne primaš email je vjerovatno iz razloga što ti nešto blokira slanje istog. Jesi li probao preko SMTP?
Nisam. Probat ću. Na neki način sam prje slao email po nekom lindy-nom tuutorialu od Kevina Skouglanda. U svako sulučaju hvala ti. Nešto radim i ovo mi je baš trebalo. Odlični tutoriali.
so, can it run in localhost? because i try but it doesn't send to the email
Yes, but you will need to send an email via SMTP. Check this tutorial: ua-cam.com/video/-J9k4m1yhco/v-deo.html
Hello ,
sir Senaid Bacinovic Its not working in wamp server localhost ......what to do ???????
What is the problem?
Is it sending using localhost? Or your connected to the internet??
In this example I am sending from my server, but you can send from localhost too, and the easiest way is to send via SMTP.
Firstly I registered and then login with verification, alerts says, verify firstly. It's great but after when I confirm email and without enter email or password when I enter login button it's logged in. Why? how I fix this...
Bro whenever i click the verification link in the email received it does not set active status to 1 and token to null.
However i just used the same logic from your video for confirm.php, please help me as I am stuck in this problem for more than 3 days even google was unable to help. BTW, nice tutorial.
Nice video. Can you make a video for Google authenticator Php
thanks sir you are very nice
thank you :)
How can I display name after login with roll no. and password using PHP and MySQL?
The simplest way is to just save it to the session on login page, and after that just to display it on any page that you need it.
how to decrypt hash password to original text .. its not related to the tutorial but i will be glad if you help me out
I can't seem to get the password_verify bool to say true. I got everything else working, but not that. I know I'm typing in the correct test password that I registered with, but it just won't verify. Any suggestions?
I figured it out. I had the mysql password column set to 50 chars. Not enough for the minimum 72 characters required for password BCRYPT. Great tutorials, thank you so much!
great work
thank you :)
Hi, am a student working on my final year project and I found your video of email validation and verification interesting , after trying the code and changing Mail function in xampp php. Ini the mail is still not sending to the users
zainab oladiti Have you tried to send it over SMTP?
No, haven't tried that but how can I do it?
Check this video: ua-cam.com/video/Mw_ORXPoogY/v-deo.html
Hello Senaid, loved the tutorial!! However, when i am running the registration form, i get the success message but i am not getting any email confirmation.
Neel Patel Are you testing it on localhost?
yes
Neel Patel that is the problem, you will need to send it using SMTP or test from live server :)
ok thanks brother. Really appreciate the feedback
No problem, have a great day! :)
Email confirmation activity for registration is working...I got the mail... But there is notice of trying to get property of non object
And warning of escapeshell() has been disabled for security reasons
And also my database is not update when input is done in registration form... Help me sir
i wrote this code on my server, but there is nothing happen. i'm not get email at all.. so i read comments on this video, and my question is.. is smtp can do thing like this? please answer me quickly sir.. thanks
Good work bro .. Keep it ... do you have tutorial on codeigniter..
Thank you. I am sorry, but I dont have it at the moment.
thanks , i have question , how to decrypt hash password to original text .. its not related to the tutorial but i will be glad if you help me out
Neat and clean code, easily understood.. thanks brother !!
thank you :)
sir my code is not working whenever i click on submit button it just give me error that please enter valid inputs plss help me sir
Hello, i need help Fatal error: Class 'PHPMailer\PHPMailer\PHPMailer' not found in
Can you show me the code (paste it here)?
thanks you, I found the problem with the routes, could you teach me how to make money with facebook?
On what way you would like to make money? :)
I just wanted some advice on how I could earn money for Facebook, you've seen that you have past experiences with that topic.
Error: class phpmailer not found
it says "Please check your inputs!" but I don't have any problem with my inputs. what is the cause?
When do you get that message?
thank you for source code , that code is very helpful for me..
My pleasure, thank you.
Everything done but i did not receive the email
Good video!!!.....
Thank you!
How can I make this work locally with gmail settings intergration? without the need of a hosting server, I followed but I get "something went wrong error!" on register. Thank you Sir.
You will have to send an email via SMTP.
Here is video tutorial on how to do it: ua-cam.com/video/-J9k4m1yhco/v-deo.html
@@SenaidBacinovic sir I used smtp method but it is still not working what should I do now?
Call to undefined function password_hash() how to solve this error please help.
All you need to do is to update your PHP server, because password_hash() exists for PHP 5.5.0+ versions. If you're using some shared hosting, just go to cPanel -> PHP Selector and update it.
EDIT:
There is possibility that you will have some problem with PHP functions because some of them might not exists in new version of the PHP, so please first check that compatibility first OR be prepared to switch it back if you have problems.
In the line where you wrote ishtml(ismthl:true) , am getting syntax error "unexpected : "
Remove this:"ismthl:"
Ok
nice work bro :)
thank you :)
i had this error: Warning: escapeshellcmd() has been disabled for security reasons in /storage/ssd5/744/1199744/public_html/PHPMailer/PHPMailer.php on line 1597 how to fixed it?
Please read this: stackoverflow.com/questions/41846441/phpmailer-and-function-escapeshellcmd