Using PHPMailer sending OTP Code & Password Reset using PHP

Sdílet
Vložit
  • čas přidán 10. 09. 2021
  • 👋 Hey Friends!
    In this tutorial, I will show you guys how the Login Form System works in sending OTP code using PHPMailer and Password Reset with PHP.
    Free Source Code:
    github.com/kaizhelam/login-sy...
    🔥 Want to master JavaScript? Get the complete JavaScript Book: kaizhelam.github.io/JS-Note-B...
    Get my Java Tutorial Book online for Free:
    cutt.ly/3c31V87
    👍 Subscribe for more tutorials like this:
    bit.ly/2Oajh4C
    Check my Personal Website:
    kaizhelam.github.io/website.com/
    ⭐️ Want to learn more from me? Check out these links:
    Java Programming Tutorial from scratch to advanced
    • Playlist
    HTML 5 Tutorial from scratch to advanced
    • Playlist
    CSS 3 Tutorial from scratch to advanced
    • Playlist
    JavaScript Programming from scratch to advanced
    • Playlist
    Data structure and Algorithm in C++
    • Playlist
    Please like and subscribe to my channel and press the bell icon to get new video updates.
    💖 Thanks for everything!

Komentáře • 132

  • @ruvitkon
    @ruvitkon Před 2 lety +10

    Thank you very much :), This was really helpful in my final project.

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety +2

      woah, i am so happy to hear that 😃

    • @none12356n
      @none12356n Před 2 lety

      Hey can u help me

    • @ruvitkon
      @ruvitkon Před 2 lety

      @@none12356n what kind of a help do you need ?

    • @none12356n
      @none12356n Před 2 lety

      @@ruvitkon text me whatsApp i will tell

  • @ronniebarasi8388
    @ronniebarasi8388 Před 9 měsíci +1

    Thank you so much for sharing this video, I am currently coding for a week until I saw yours. Thanks a lot, I am a graduating student and having my thesis😢. Hope you inspire and help others students like me. I love you!❤

  • @qwjaja9180
    @qwjaja9180 Před 2 lety

    Thanks for this video, really helpful.

  • @azri6210
    @azri6210 Před 2 lety +1

    thank you sir !! i will never forget you ✨

  • @Alone-wm1vi
    @Alone-wm1vi Před 2 lety

    super useful, thank you so much!!

  • @programmingwithcpp3698
    @programmingwithcpp3698 Před 2 lety +1

    Thank you ! very helpful.

  • @ronniebarasi8388
    @ronniebarasi8388 Před 9 měsíci

    I have subscribed you now because that's what you deserved.

  • @indonesiakonten
    @indonesiakonten Před 3 měsíci

    Terimaasih, Informasi yang sangat membantu 🙏

  • @567qbb
    @567qbb Před 2 lety

    thanku sir..for this video and the source code

  • @daniloalvaro2142
    @daniloalvaro2142 Před 6 měsíci

    bestt codes for reset pass thank u so much

  • @snehasishsaha5473
    @snehasishsaha5473 Před 2 lety

    Thanks a lot sir {I am you new subscriber}

  • @JarvisCodes
    @JarvisCodes Před 2 lety

    Nice Tutorial Sir

  • @narenyadav5600
    @narenyadav5600 Před 2 lety +1

    Really helpful video

  • @pratapbhattacharya7649

    thank you bro
    this is help full

  • @user-dx4nw1in3o
    @user-dx4nw1in3o Před 11 měsíci

    realy nicee! it's WORKS!

  • @omnia8856
    @omnia8856 Před rokem +11

    unfortunately google has made the less secure app acssess setting not available so is there any other way to implement this tutorial ? I am getting invalid email when I try to register and no OTP is sent to my email

  • @bluvelvet1ez499
    @bluvelvet1ez499 Před 4 měsíci

    1 question, what would happen if user just exits the otp validation, and then when he tries to login again?

  • @die_hard4000
    @die_hard4000 Před rokem

    I cant turn on my gmail account because google already turned it off. Like i cant recieve otp even the program came from you says verify your acc first

  • @mirumo1834
    @mirumo1834 Před rokem

    thank sir

  • @charlesmatthewdelacruz5535

    Hi, I can't go to index, it says "You don't have permission to access this resource"

  • @134snip
    @134snip Před rokem

    Hi guys it will work on sub domain ? - Message could not be sent.Mailer Error: SMTP connect() failed. plz help any one.......

  • @Jay_domain_hub
    @Jay_domain_hub Před 6 měsíci

    OTP is not receiving in my email. WHAT SHOULD I DO FOR THAT?? SHOULD I GIVE MY EMAIL AND PASSWORD TO USERNAME AND PASSWORD? OR SHOULD CREATE ANY ACCOUNT IN ANY WEBSITE??
    PLEASE REPLY !!!

  • @gamesbond4074
    @gamesbond4074 Před 2 lety

    Thank you!

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      You're welcome!

    • @gamesbond4074
      @gamesbond4074 Před 2 lety

      @@CodeCreativeYT The updated github repo is good! Just a quick question can I replace the status from 1/0 to Verified/Not Verified? Thank you!

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      @@gamesbond4074 Hi bro, yes I've updated to more security, yes may change the status from1/0 to verified or not verified

    • @gamesbond4074
      @gamesbond4074 Před 2 lety

      @@CodeCreativeYT Thanks bro

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety +1

      @@gamesbond4074 Most welcome 😉

  • @muhammadrasyaasysyifa9026

    why after registration only appears -> Register Failed, Invalid Email .
    Is there something wrong?

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem

      you have to turn on 2 authentication mode on your google account, which u used in $mail->USername, then get an app password from google account, and use it in $mail->password instead, because the LESS SECURE APP in google account is no longer supported.

    • @muhammadrasyaasysyifa9026
      @muhammadrasyaasysyifa9026 Před rokem

      @@CodeCreativeYT thanksss

  • @joegeorge4756
    @joegeorge4756 Před rokem

    I have done everything inlcudig turing on two way authentication but its still telling me "Register Failed, Invalid Email ". Please help.

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem +1

      you have to turn on 2 authentication mode on your google account, which u used in $mail->USername, then get an app password from google account, and use it in $mail->password instead, because the LESS SECURE APP in google account is no longer supported.

  • @kapilchoudhary3574
    @kapilchoudhary3574 Před rokem

    hay it is not working not come verification window and not come mail

  • @dg_yy8920
    @dg_yy8920 Před 2 lety +1

    Hi, someone please help me because I can't receive the otp in my email because whenever I register the right email and password, it would say "register failed, invalid account"

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      Hi, before u receive the otp. you need to setting your email first

    • @joshuamagos6079
      @joshuamagos6079 Před 2 lety

      @@CodeCreativeYT hello good day they removed less secured apps in google now is there other way to fix it?

    • @joegeorge4756
      @joegeorge4756 Před rokem

      @@CodeCreativeYT im having the same issue too and i've done the settings in my gmail.

    • @134snip
      @134snip Před rokem

      @@joshuamagos6079 after doing this also same msg on domain

  • @aaronarela463
    @aaronarela463 Před 2 lety

    Having issues on Register form. It says invalid email address.

  • @arssdeff5462
    @arssdeff5462 Před rokem +1

    Hi, i have fatal error in recover_psw.php on line 75, how to solve this problem? 🥺

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem

      Hi, can i know what is the error message you got?

    • @arssdeff5462
      @arssdeff5462 Před rokem

      @@CodeCreativeYT I got this message. "Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in C:\xampp\htdocs\PTG
      ecover_psw.php:73 Stack trace: #0 C:\xampp\htdocs\PTG
      ecover_psw.php(73): mysqli_num_rows(false) #1 {main} thrown in C:\xampp\htdocs\PTG
      ecover_psw.php on line 73"

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem

      @@arssdeff5462 That means your query didn't run properly due to an error.

  • @102-vinothkumar9
    @102-vinothkumar9 Před 9 měsíci

    now in google less secure app access is not available now what to do sir
    ?

    • @CodeCreativeYT
      @CodeCreativeYT  Před 9 měsíci

      Hi, I would like to have a look first and update as soon as possible. Thanks.

  • @diskarte9519
    @diskarte9519 Před rokem

    please help me can't receive a otp code in my gmail that i registered

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem

      For those who can't send it, make sure you turn on 2 authentication mode on google account, which u used in $mail->USername, then get an app password from google account, and use it in $mail->password instead, because the LESS SECURE APP in google account is no longer supported.

  • @pulangcoshailagraceallam6677

    hi can you pls help me, i'm having trouble with the login it keeps saying invalid password even though i entered the right password

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety +1

      Hi, yes i can help. You can send me the source code to my email
      lamkaizhe2001@gmail.com
      I will check and reply your message asap. Thanks.

    • @pulangcoshailagraceallam6677
      @pulangcoshailagraceallam6677 Před 2 lety

      @@CodeCreativeYT hi I've send the source code to your gmail, thank you very much for helping me God bless

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      @@pulangcoshailagraceallam6677 Hi, i will check it and reply your message tonight, Thanks too 👌🏻

    • @pulangcoshailagraceallam6677
      @pulangcoshailagraceallam6677 Před 2 lety +1

      @@CodeCreativeYT thanks a lot I really need it for our school project

    • @pulangcoshailagraceallam6677
      @pulangcoshailagraceallam6677 Před 2 lety

      @@CodeCreativeYT hi, I somehow manage to fix it so you don't have to fix it, still thank u for your help I really appreciate it

  • @Yokkesh_K
    @Yokkesh_K Před rokem

    bro i need a urgent help, if i click login, it redirects to my html page, how to set that?

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem

      HOME

    • @Yokkesh_K
      @Yokkesh_K Před rokem

      @@CodeCreativeYT bro can you help me for connecting that , it does not work
      I need , only email and password verified as per registered credentials and then only go to html page
      I share u source code , please modify and send me , please bro tommorow I have final year project review
      Please share ur mail id

  • @gamesbond4074
    @gamesbond4074 Před 2 lety +1

    I sent another email, I still can't fix it. I can't move on to the next process. Please help.

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety +1

      OK, will help you on Saturday!

    • @gamesbond4074
      @gamesbond4074 Před 2 lety

      @@CodeCreativeYT Thank you!

    • @gamesbond4074
      @gamesbond4074 Před 2 lety

      @@CodeCreativeYT Hello I've sent the zip file and problem.

    • @phpxml580
      @phpxml580 Před 2 lety

      @@gamesbond4074 did you receive any solution? i am also having the same problem

    • @phpxml580
      @phpxml580 Před 2 lety

      @@CodeCreativeYT i am also having the same problem, please help

  • @argiemiguel3042
    @argiemiguel3042 Před 2 měsíci

    it dont send me the OTP Code

  • @jey.el.
    @jey.el. Před rokem

    hello sir please help me can't receive a code in my gmail

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem

      For those who can't send it, make sure you turn on 2 authentication mode on google account, which u used in $mail->USername, then get an app password from google account, and use it in $mail->password instead, because the LESS SECURE APP in google account is no longer supported.

    • @jey.el.
      @jey.el. Před rokem +1

      @@CodeCreativeYT I turn on may 2 auth but still can't receive

    • @CodeCreativeYT
      @CodeCreativeYT  Před rokem

      @@jey.el. did you follow the code step by step. should be working fine

  • @gimuelaguirre2121
    @gimuelaguirre2121 Před 2 lety

    Hello, someone can help me because I can't receive the otp in my email when I register It says register failed, invalid account TIA.

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety +1

      Hi, please settings your email to received OTP

    • @gimuelaguirre2121
      @gimuelaguirre2121 Před 2 lety

      @@CodeCreativeYT Hello sir, thankyou for replying I already turned on the access but when I tried to register the local host says register failed, invalid email how can I fix it thankyou!

    • @gimuelaguirre2121
      @gimuelaguirre2121 Před 2 lety +1

      and then when I tried it again localhost says user with email already exist.

    • @gimuelaguirre2121
      @gimuelaguirre2121 Před 2 lety +1

      I followed all the steps but I don't know why there's an error in me.

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      @@gimuelaguirre2121 hi, you can get the latest source code from repo. And followed the steps on video.

  • @praveenandrew
    @praveenandrew Před 2 lety

    I have one error . SMTP error ( smtp I connect failed . Smtp is not authenticate )

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      Hi, please check the video step by step, you need to settings certain things on email

    • @praveenandrew
      @praveenandrew Před 2 lety

      @@CodeCreativeYT bro even I on allow less user on email security site

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      @@praveenandrew what's the error message?

    • @praveenandrew
      @praveenandrew Před 2 lety

      @@CodeCreativeYT bro finally the code was run perfectly thank you 😊

    • @CodeCreativeYT
      @CodeCreativeYT  Před 2 lety

      @@praveenandrew you're welcome 😊 Good job

  • @jirmynacario2213
    @jirmynacario2213 Před 5 měsíci

    less secure app is not existing anymore

  • @sheetalprajapati2833
    @sheetalprajapati2833 Před rokem

    not worked

  • @huachozaracho
    @huachozaracho Před rokem

    No funciona. lastima...

  • @ryanong9527
    @ryanong9527 Před 11 měsíci

    man doesnt work

  • @dylanlex300
    @dylanlex300 Před rokem

    Nothing works for me

  • @adhitamaputra-73
    @adhitamaputra-73 Před měsícem

    .b.i.n.a. .s.a.r.a.n.a. .i.f.o.r.m.a.t.i.k.a.