Great video! I tried but it catches error. It says Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. Failed to connect to server in ... Can you help? Thank you in advance
I encountered an error Warning require(vendor/autoload.php): failed to open stream: No such file directory in C:\xampp\htdocs\. Although I have already a vendor folder and phpmailer folder. What should I do bro? Please can you help me?
Hello, Adnan! I have some question for this tutorials. What is the password for login after register, the random password from database? or password that I used it from registered? bcs I cant use any password for login, so I stuck with "Password is not correct." Thanks, Adnan!
Hi Adnan, I already typed the correct host name, username and my database name in the mysqli_connect part but the values does not enter my users table. Do you know what could be the problem here? And thanks for the video
Hi Adam, my checking password function on the sign-in page is not functioning. It just shows "wrong password" even i entered the correct one. but the username can check whether is right or wrong. Do you know how to solved it?
Is your password encrypted in database ? If yes, then make sure you are not checking the password in plain text. You need to check the password by decrypting etc
Hashed Password from Database: omg123 Password is not correct even though i add code to show the password that store in database, is the same what i entered but still show "password wrong"
Make sure you have entered the correct email address and password. And also make sure you have enabled less secure apps from here: myaccount.google.com/lesssecureapps
hi adnan hope you are well i dont know how to install the phpmailer to the computer?? when you open the black window i mean ? and would you please tell me if there is any risk of installing it ?? regards :)
i dodn't understand how to run the command, isn't there a way to download the php mailer folder with everything on it i am very confused and frustrated,, can you provide the folder with everything in place
@@AdnanAfzal565 its not about the source i'm talking about the phpmailer folder on the code it says use PHPMailer\PHPMailer\PHPMailer; but there is not second or third PHPmailer there
@@AdnanAfzal565 thx for replying, it's all setup now but it gives this err Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
(I'm french) Hi Adnan, I get this error : Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. My email and my password are the good. Can you help me please ? PS: I don't use google translate :)
i encounter another problem where i cant see the details in the database , it looks like invisible ( when I create manually to test , there is missing in the order of numbers
I have already done the app password form Google account, and now I got this error Fatal error: uncaught_mysql_execution: Not connection could be made because the Machine refused it The error on line 67 where the local host = 8889, 'root',........
I'm struggling to write a line that checks to see if the email is already activated, as at present when the email is already activated it just displays, verification code failed, I want it to check if activated = '1' to display this account is already activated.
Please help me "Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\EmailVerification egister.php on line 7"
@@AdnanAfzal565 Where I can see this one sir? I really need this program for my school project. Can you make a video or tutorial how to solve this problem?
Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\htdocs ew egister.php on line 9 Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\php\PEAR') in C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\htdocs ew egister.php:9 Stack trace: #0 {main} thrown in C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\htdocs ew egister.php on line 9 plz broo
i got this error please help "Message could not be sent. Mailer Error: SMTP Error: Could not authenticate." i tried any possible things even all your suggestions in comments but still not yet.🥲
Great video! I tried but it catches error. It says Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. Failed to connect to server in ... Can you help? Thank you in advance
It means your SMTP email and password are incorrect. Try this new method: ua-cam.com/video/MP-QGUaxAno/v-deo.html
I encountered an error Warning require(vendor/autoload.php): failed to open stream: No such file directory in C:\xampp\htdocs\. Although I have already a vendor folder and phpmailer folder. What should I do bro? Please can you help me?
Try running "composer update" on root folder of project.
composer dump-autoload
Hello, Adnan!
I have some question for this tutorials.
What is the password for login after register, the random password from database? or password that I used it from registered? bcs I cant use any password for login, so I stuck with "Password is not correct."
Thanks, Adnan!
Check your spellings. Make sure that capslock is turned off.
Thank you for your hard work, it works on my local computer but it doesn't work when I put it on the hosting, please help me
What error are you having ?
Hi Adnan, I already typed the correct host name, username and my database name in the mysqli_connect part but the values does not enter my users table. Do you know what could be the problem here? And thanks for the video
Check for port number too.
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate
and I enabled less secure apps for gmail.. it's not working..
Gmail has disabled less secure apps. I am searching for an alternative. Will upload a new video once found a solution.
hey bro, it can't connect to the database
Make sure you are entering correct host, port username and password
Hi Adam, my checking password function on the sign-in page is not functioning. It just shows "wrong password" even i entered the correct one. but the username can check whether is right or wrong. Do you know how to solved it?
Is your password encrypted in database ? If yes, then make sure you are not checking the password in plain text. You need to check the password by decrypting etc
Hashed Password from Database: omg123
Password is not correct
even though i add code to show the password that store in database, is the same what i entered but still show "password wrong"
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. How to solve this problem? please help me?
Make sure you have entered the correct email address and password. And also make sure you have enabled less secure apps from here: myaccount.google.com/lesssecureapps
hi adnan
hope you are well
i dont know how to install the phpmailer to the computer?? when you open the black window i mean ?
and would you please tell me if there is any risk of installing it ??
regards :)
No. There is no risk.
@@AdnanAfzal565 and how to install it
I download the zip file where should i put it the C !! And is there any additional steps to be done!!
Pls how do i make it function for "request another otp if you didn't recieve any"? Just incase a staff didnt recieve the otp at first.
You can use setTimeout function to send another OTP after 30 seconds etc.
hello sir i have a error saying Attempt to read property "email_verified_at" on null
This is because the user record is not found.
Can u help me? It shows “class ‘PHPMailer/PHPMailer/PHPMailer” not found in my directory
Try installing PHPmailer with composer.
Hi Adnan, Thanks for the tutorial..
I'm getting this error:
Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host.
Check if your email and password are correct. And make sure you have enabled less secure apps for gmail.
@@AdnanAfzal565 Thanks, It Worked!!
You are welcome
@@AdnanAfzal565 Google has no longer allow less secure apps right?
@@chandarayi5673 Yes. You can follow this now: adnan-tech.com/hosting-email-address-send-smtp-email-in-php/
can this still work if i don't have a live website? i just have php login page and a databse
Yes, it will work.
im getting this error, Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
Make sure your email and password is correct.
@@AdnanAfzal565 thank you, i get it now., you're a life saver!!>
You are welcome 🙂
how do i fixed this??
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
It means that your email or password is in-correct.
hi i have one problem coursephp inessega dont work
What error are you having ?
i dodn't understand how to run the command, isn't there a way to download the php mailer folder with everything on it i am very confused
and frustrated,, can you provide the folder with everything in place
You can download the complete source code from link in the description.
@@AdnanAfzal565 its not about the source i'm talking about the phpmailer folder on the code it says use PHPMailer\PHPMailer\PHPMailer; but there is not second or third PHPmailer there
@@bahbrahim711 Run the following command at the root of your project:
composer require phpmailer/phpmailer
@@AdnanAfzal565 thx for replying, it's all setup now but it gives this err Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
Can't download the source code. it says file wasn't available on site
Let me re-upload the file.
@@AdnanAfzal565 ok thank you so much. I'm studying php right now and I found your channel. Thanks for the help! ☺️
Thank you. That's great to hear. The file has been uploaded. Please refresh the page and try downloading again.
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. How?
im getting this error, sorry im not good at programming
You need to check your email and password.
I am getting error in email_verification 27th line required error
Can you paste the complete error here ?
Bro this video is awesome helped me to generate email otp in my project easily... great video :-) ❤️❤️
You are welcome. Glad it helped.
Yes lovely ✅ it help full for my collage project bro
Great. Nice to hear it.
Can anyone tell me Vendor folder should be at which location
It should be at your root location.
(I'm french)
Hi Adnan,
I get this error : Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
My email and my password are the good.
Can you help me please ?
PS: I don't use google translate :)
You need to enable "enable less secure apps" option using this link:
myaccount.google.com/lesssecureapps
@@AdnanAfzal565 I do it , but the same error occured
@@evc_scooter Make sure there are not spelling mistakes or no white spacing etc in the email or password.
@@AdnanAfzal565 thank you so much my email had a spacing
@@evc_scooter You are welcome.
i encounter another problem where i cant see the details in the database , it looks like invisible ( when I create manually to test , there is missing in the order of numbers
Can you show any screenshots etc ?
@@AdnanAfzal565 i managed to solve it thanks , it was my database config
@@normanchew8380 Great.
"Message could not be sent. Mailer Error: SMTP Error" getting this error, my email and password are correct. Please help.
Make sure you have entered correct email and password.
google accounts need to enable login with low secure apps option in their security settings to work with this settings. happened with me too
@@preyumkumar7404 thanks
why i encounter password is not correct? how will i fix this one?
The password must be incorrect. Check your spellings and caps lock.
Hello is this gonna work if I want my website to apply it in a web hosting?
Yes. It will work.
@@AdnanAfzal565 Really?? Thanks a lot bro for replying. I've been asking many creators about this but your the only one who replied.
No problem. Let me know if you face any problem in your hosting.
It is 100 % working. This video was really very helpful for me
Glad to hear that.
@@AdnanAfzal565how can I make them request for an otp code if they didn't get it at first...can you just make that line of code for me please.
I have already done the app password form Google account, and now I got this error
Fatal error: uncaught_mysql_execution: Not connection could be made because the Machine refused it
The error on line 67 where the local host = 8889, 'root',........
It means that your MySQL server has stopped running.
Kodingan kita sudah harus naik di hosting ya supaya running?
Anda dapat mengujinya di localhost juga.
Hi Adnan, I need help on this
Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host
Make sure your gmail and password is correct and “less secure apps” are enabled.
why not send any thing in my gemail?
It is a limitation from email clients.
How can I add a session in the code?
You can use php $_SESSION variable.
Undefined type 'PHPMailer\PHPMailer\PHPMailer'. this message coming can u help me?
It means your PHPMailer library is not included. Try check the file path.
@@AdnanAfzal565bro flie path is correct.Then also same error is coming
Thanks Adnan, this helped me in a project.
You are welcome.
I cant register login in Anand tech
What error are you having ? Can you show screenshot ?
the verify button didnt work pls help
Are you getting any error ?
Working on xammp but not a work live server hosting
What error are you having ?
@@AdnanAfzal565 email are received on use xammp but use live hosting not received mail
The link cannot be accessed.
What error you are seeing ?
Hello, the email are not sending pls help
Make sure your SMTP configurations are correct.
smtp shut down now ........ gonna need alternative now can u help sir?
Yes, you can follow this: adnan-tech.com/hosting-email-address-send-smtp-email-in-php/
@@AdnanAfzal565 hello your website login register input is not working, so no can register or login sir..
You need to double check your email and password for login. Or reset.
Can you make a node js project?
Yes.
Nice video, How you write code like that word by word.
Thanks. What do you mean by “word by word” ?
@@AdnanAfzal565
The code is written automatically in sublime?, or do you write it with your own hands, that is what i mean.
I edited the part where I misspell the variables and while thinking the next code. I remove that part from the video using iMovie.
I'm struggling to write a line that checks to see if the email is already activated, as at present when the email is already activated it just displays, verification code failed, I want it to check if activated = '1' to display this account is already activated.
You can fetch the user from database using his email only. Then use the condition in php:
if($user->activated == “1”) {
}
*Does this tool require smtp.?*
Yes
Hello sir it's still working?
Yes.
Bang mau nanya lebih lanjut, ada kontak yg boleh di hubungi?
Tentu, Anda dapat mengunjungi di adnan-tech.com. Dan ada widget obrolan di kanan bawah.
Very functional bro to send campaign emails.
Thanks. Glad to hear it.
is it still working?
Yes.
Nice video , could you bro make a video using an API its more secure
Yes. That can be done.
Thank you
You are welcome.
very interesting it worked for me pretty fine.
Glad it helped.
Please give source code
Its link is in the description.
please tell me how to add php mailer
You can get it from here: github.com/PHPMailer/PHPMailer
next time pls add music and effects to your video it was great but really boring and less intriguing
Sure. Will keep that in mind. Thank you for suggestion.
Can I rent you to work for me and I will pay you?
Sorry, right now I am not doing freelance work.
You can hire me I will surely do your work
how to enable enable "enable less secure apps" ?
This method is no longer works for Gmail. You will not find this option now.
good
adnam afzal
very good
@@parvanehsalary1745 Thanks.
Please send i phone settings
You want to verify with SMS ?
@@AdnanAfzal565 gamil la bro spam la verify code varala bro
Nice
Thanks
Nice thank you
You are welcome.
6:20
Please help me "Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\EmailVerification
egister.php on line 7"
You need to run the following command:
> COMPOSER_MEMORY_LIMIT=-1 composer update
@@AdnanAfzal565 Where I can see this one sir? I really need this program for my school project. Can you make a video or tutorial how to solve this problem?
@@johnvincentalmonia8880 You need to open the command prompt or CMD or terminal (Mac) in the main folder of your project. And then run that command.
@@AdnanAfzal565 Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. How about this one? What or where do you think my error?
@@johnvincentalmonia8880 it is because your email and password does not match. Or make sure you have enabled less secure apps for your gmail account.
Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\htdocs
ew
egister.php on line 9
Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\php\PEAR') in C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\htdocs
ew
egister.php:9 Stack trace: #0 {main} thrown in C:\Users\Dell\OneDrive\Desktop\just yogesh stuff\CONTROL\htdocs
ew
egister.php on line 9
plz broo
Run command: "composer update" at the root folder.
i got this error please help "Message could not be sent. Mailer Error: SMTP Error: Could not authenticate." i tried any possible things even all your suggestions in comments but still not yet.🥲
Go to your gmail settings and enable 2FA. From there, you can get an app password. Use that password instead of your gmail actual password.
Please help: Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
Please double check your email and password. Also make sure the “less secure apps” are enabled for that gmail account.
@@AdnanAfzal565 I have checked they are correct and im not using gmail im using outlook
Then make sure the port number and encryption type “ssl” or “tls” is correct.
@@AdnanAfzal565 so what should the code bee if you can send me thx for answering
The port should be 465. And the encryption must be “tls”. That should work.