HTML Form to Mail | Contact form to email the fastest way | contact page with php mail

Sdílet
Vložit
  • čas přidán 11. 07. 2024
  • Blog link : codeconia.com/contact-form-wi...
    Hey everyone. Today i am going to tell you how to connect your website contact form with your email using PHP.
    In this video, we are going to create a contact form and make a mail function using PHP and test it on a live server
    //post your issue in our forum forum.codeconia.com/t/php
    🎉 Get a VPS server for 4$ with 6GB RAM 🎊
    link.codeconia.com/1gow1
    🔔 Get 82% discount 😍 from hostinger for wordpress hosting 🔔
    link.codeconia.com/iqra1
    📢Get a VPS server for $3.5/month 😍
    link.codeconia.com/uzqn5
    ❤️ Get Unlimited hosting for $3/ month ❤️
    link.codeconia.com/jf2y9
    👉 Join Our Telegram Channel 👉 t.me/codeconia1
    🎉 Join Our DiscordChannel 🎉 / discord
    ✅ Follow me on Instagram 👉 / ajith_jojo_
    💡 Subscribe to get all updates: 👉 czcams.com/users/ajithjojo11...
    00:00 Introduction
    01:03 Creating HTML form
    03:30 Creating PHP File
    05:00 explaining the code
    08:51 Test the code
    09:37 fixing a small bug
    10:05 Check email

Komentáře • 624

  • @AjithJojo118
    @AjithJojo118  Před 2 lety +9

    if you are in free hosting providers like 000webhost or localhost .. you can try SMTP method : czcams.com/video/90LS_oSKD0o/video.html

  • @leebarnes9486
    @leebarnes9486 Před 2 lety +7

    Finally!!! Exactly what I have been searching for, thank you brother!

  • @zahinahmad1222
    @zahinahmad1222 Před 3 lety +10

    Thank you so much! After a long time searching I finally found a tutorial which actually works. This tutorial was worth watching!

    • @AjithJojo118
      @AjithJojo118  Před 3 lety +1

      most welcome

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

      I got a error man.. :(. After submitting the form I’m getting 405 not allowed 🚫

  • @raghavsharma3795
    @raghavsharma3795 Před 2 lety +4

    Wow, this is a great help for front end developers, thank you.

  • @asimfds6462
    @asimfds6462 Před rokem +1

    Thank you very much for helping me on this topic, I have seen many videos related to this topic, but none of it worked for me.
    Finally, I found your video which worked for me. Thank you again.🙏

  • @talhashahid3845
    @talhashahid3845 Před 2 lety

    Thanks sir, I was searching about this from 2 to 3 days finally got this ,Thanks .

  • @melfordbirakor
    @melfordbirakor Před 2 lety

    Wow... Thanks so much, Codeconia

  • @yosemiteplanet-hikeandtour6980

    Thank you so very much for your wonderful training video! I did it and am so happy for your information.

  • @mohankumar349
    @mohankumar349 Před 2 lety +4

    Very useful for font-end developers. Thank you.

  • @pankajdeshmukh4013
    @pankajdeshmukh4013 Před 3 lety +2

    ThankYou bro this video is really helpful for me to make my cv form working

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

    your are a good web designer! thanks i have been serching this method for long time , but i foun it , thank you so much

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

    Thanks, saved me time.

  • @prashantkumardas369
    @prashantkumardas369 Před rokem

    Thank you sir , I literally tried alot to figure out thos concept. It help me lot

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

    This is what I was searching for can't thank you enough man take love❤️❤️❤️❤️❤️

  • @ThomasBui359
    @ThomasBui359 Před rokem

    It's great to make your acquaintance. Wishing your families good health, prosperity, and a wealth of good luck.

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

    Thanks a lot for this concept.

  • @pacsyprodukcio
    @pacsyprodukcio Před rokem +1

    great video, thank you so much!

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

    You are best sir, it is very sad to see that even you are working that much hard and yet your channel is not growing fast but sir u r amazing and everyone will acknowledge your work.

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

      really appreciate your comment .
      guys like you make me and my channel grow, i expect your support further

  • @sakshishanbhag
    @sakshishanbhag Před rokem +2

    oh myyy godd, it had been three days that i was trying to figure out how to send emails , watched so many tutorials but none of them worked, your video is a saviour sir!! it worked finally ,thankyou so much for all your efforts in explaining it so easilyy. Its the best tutorial on youtube!!The bestt!

  • @sarvarkhalimov111
    @sarvarkhalimov111 Před 3 lety +5

    Explained well with a clear step-by-step guide. Thanks

    • @sarvarkhalimov111
      @sarvarkhalimov111 Před 3 lety +1

      I haven't opened and pushed to the remote website yet) hopefully, it will also go as smoothly as it went so far.

    • @AjithJojo118
      @AjithJojo118  Před 3 lety

      sure .. it will

    • @sarvarkhalimov111
      @sarvarkhalimov111 Před 3 lety +1

      ​@@AjithJojo118 it did, thanks

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

    You are golden hearted man keep it up 😘😘😘

  • @RuiOut8
    @RuiOut8 Před 2 lety

    Awesome thank you very much!!

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

    You are the savior of my website

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

    Really useful video! Thank you!)

  • @vanitymeetstechnology8792

    Thank you so much.. love you my frnd

  • @sangitamehta5023
    @sangitamehta5023 Před rokem

    Great!

  • @pd9554
    @pd9554 Před 2 lety +4

    Thank you dear ! You did a great job !
    I consulted about twenty tutorials but all of them were incomplete. The email sent did not include the user's email address or the subject.
    With your tutorial, I was able to add the object easily.
    So the email I receive tells me everything I need to know.
    Sender's email, subject and message.
    Thanks a lot !

  • @yt_gaming_8629
    @yt_gaming_8629 Před rokem

    Thank You Very much

  • @ok-podcaster7489
    @ok-podcaster7489 Před 3 lety +2

    Thanks bro for this video

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

    Thank you so much ❤

  • @FrancescoAquilino
    @FrancescoAquilino Před 2 lety

    Thanks! Great!

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

    Thanks a lot

  • @dlsstudio
    @dlsstudio Před 2 lety

    best idea my dear sir

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

    Awesome work brother ...

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

    Thanks brother

  • @musawirshaikh1208
    @musawirshaikh1208 Před 2 lety

    Thanks for this best one

  • @JazzGamers3366
    @JazzGamers3366 Před 3 lety +2

    Thank you sir...

  • @shyren_more
    @shyren_more Před 3 lety +1

    Thank you very much, it worked !!

  • @subratnayak7022
    @subratnayak7022 Před 3 lety

    when i uploaded php file in the root folder in the cpanel, the file type of the php file is like text/x-generic. how to change it like that you have for your php file ?

  • @pratikvasu2.0
    @pratikvasu2.0 Před 3 lety +5

    thank you so much for this video

  • @luckyverma5561
    @luckyverma5561 Před 2 lety

    Thanks a lot brother.

  • @user-kr4ce6oe6u
    @user-kr4ce6oe6u Před 6 dny

    thanks when publish my website and try the codes you provides it runs but i didn't see the email from site going to recipient can help me with? thanks

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

    thanks it very very help me

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

    Thank you!

  • @willfredphetole7052
    @willfredphetole7052 Před 3 lety +2

    this great..thank you very much!!!

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

    sir kya is ko karne k liye domain aur hosting lena important h aur mein jab submit par click karta hoon then it says This page isn’t working

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

    Thank you

  • @HuyTran-fz3ul
    @HuyTran-fz3ul Před 2 lety

    Thank you so muchh 😍

  • @sonyyathulasiraman9604
    @sonyyathulasiraman9604 Před 3 lety +3

    you have no idea how you helped me now
    thankyou bro
    that was damn simple

    • @AjithJojo118
      @AjithJojo118  Před 3 lety

      most welcome

    • @sonyyathulasiraman9604
      @sonyyathulasiraman9604 Před 3 lety +1

      @@AjithJojo118 bro i couldn't complete
      I got struck with that cpanel
      I am just 1st yr student
      Can u Help me again with simple context
      Like what i have to do with that cpanel or like wheather there is a alternative
      I am doing doing project on restaurant website
      Now i have to submit the html form to admin email id
      Plzz...

    • @AjithJojo118
      @AjithJojo118  Před 3 lety

      yeah email me the details to ajithjojo07@gmail.com
      or whatsapp me +91 8129505560

    • @sonyyathulasiraman9604
      @sonyyathulasiraman9604 Před 3 lety

      @@AjithJojo118 yes bro i have mailed😇

    • @AjithJojo118
      @AjithJojo118  Před 3 lety

      will check

  • @henryadodo700
    @henryadodo700 Před 3 lety +2

    it's tricky but it works....

  • @cryptoblockchainindia7523

    You are so cool brother thanks you❤

  • @ganeshgajelly4826
    @ganeshgajelly4826 Před 2 lety

    Really awesome

  • @cricketfederation
    @cricketfederation Před 2 lety

    Thank You

  • @hamzaansari1648
    @hamzaansari1648 Před 2 lety

    Sir at mail.php.. if we write code for submitting data to database AND also for getting mail so it's workS ???

  • @babystrokessr
    @babystrokessr Před rokem

    Do I need to take extra steps to upload this code to a live server? I have live server in VSCode and open the form.html in live server. Is that sufficient enough to send emails from the contact form?

  • @DigitalBangaliz
    @DigitalBangaliz Před rokem

    Thanks.

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

    Great tutorial!

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

    Many many thx dude

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

    but for me mail is not coming to my gmail as i provided in php code but thank you msg is coming-no mail can u help me on this

  • @akshitramesia4271
    @akshitramesia4271 Před 2 lety

    thanks...!

  • @nejan_s
    @nejan_s Před 3 lety

    awesome thx a lot

  • @vrushabhpatil2867
    @vrushabhpatil2867 Před 3 lety +1

    bro thanx man i didn't even know that php mail service don't work on local aerver but work on live server, thanx i was wasting my so many time in this shit

    • @AjithJojo118
      @AjithJojo118  Před 3 lety

      i mentioned that in the beginning of the video

  • @samsenolay2210
    @samsenolay2210 Před rokem

    Why does our local environment If we want to test email functionality, doesn't support?

  • @avinashnamadhari
    @avinashnamadhari Před 2 lety

    Ajith, thanks for this simple tutorial. Still I'm having isues implementing this on a webflow exported HTML code where the success/failure message is embedded in the contact.html. Would you be able to help me out?

  • @coolheadedguyTv
    @coolheadedguyTv Před 3 lety +1

    Thanks a lot for this

  • @pradeebawinngootec8340

    i have hosting in IONOS . not able do the mail function. can please help me out

  • @shiva-c3-kmm-tech941
    @shiva-c3-kmm-tech941 Před 2 lety +1

    Thank you so much sir plzz tell if we an samosa and it's rate in one website in another website how to if we press samosa we have to get its price both are not same website

  • @stsecuritytv7542
    @stsecuritytv7542 Před 3 lety +1

    great WorK ...

  • @jackevangelides876
    @jackevangelides876 Před 3 lety +2

    Hi, thanks for the great video. Worked very well.
    Do you have another video on designing the sent email?

  • @mithunmiah7562
    @mithunmiah7562 Před 2 lety

    Nice

  • @ravimano8019
    @ravimano8019 Před 2 lety

    Hi Ajith, thanks a lot it worked for Gmail but I have GoDaddy web server. unable to receive the email from there? Any suggestion?

  • @mrtechman2431
    @mrtechman2431 Před rokem

    do we have to make any backend in localhost database for this

  • @sathishkatthula5195
    @sathishkatthula5195 Před rokem

    hi i juat test ur code but i didnt recive any inform to my mail ??

  • @user-vo5di7lx1n
    @user-vo5di7lx1n Před 8 měsíci

    does it reset the form input fields after submitting it?

  • @mdjubarh
    @mdjubarh Před 2 lety

    I haven't received any messages.. is there any thing to do with email or hosting stuff..??

  • @MAYUR_SHRIGIRI
    @MAYUR_SHRIGIRI Před 3 lety +1

    you are great. I like your explanation

  • @eightelms
    @eightelms Před rokem

    Thanks for your tutorial. I use the tutorial and I uploaded the form on my cpanel the form said the mail was successfully sent, but no email was found in my Gmail account. What is going on? Thanks so much.

  • @albertbadiaslosa2641
    @albertbadiaslosa2641 Před 3 lety +2

    Hi @codeconia, i've recelntly upload my website with this current .php file, but it don't send me any email for the form of the website. I'm with cpanel as files manager, any idea?

    • @AjithJojo118
      @AjithJojo118  Před 3 lety

      create the FROM email address on ur cpanel email accounts.. thn it will work.. some providers need a valied sender email id

  • @hamzaansari1648
    @hamzaansari1648 Před rokem

    We connect to mail and also
    That can we connect to database ????
    Plz sir
    The values those we are getting to mail so if I want to also submit it to my database so did it works ???

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

    thank you boss

  • @inanimarbleandgranite

    Sir i have a problem i can not use it in my vs code please help me how to fix the error 405

  • @janardansingh1990
    @janardansingh1990 Před 3 lety +1

    you were amazing

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

    My server is not working this code can you give what is exact problem for this

  • @devaconstructions885
    @devaconstructions885 Před 3 lety +1

    thanks brother!

  • @MalikAwan-qz5sc
    @MalikAwan-qz5sc Před 2 lety

    Agr koi website abi online nhi h to kia uska b msg send hoga gmail py? Mny apk steps follow lkn gmail py msg ni arha

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

    Thanks a ton sir thanks a lot🙏🙏

    • @AjithJojo118
      @AjithJojo118  Před 2 lety

      you welcome

    • @melvinxavier1692
      @melvinxavier1692 Před 2 lety

      @@AjithJojo118 Sir if i create a dropdown menu option then how do i use the code because here the attributes u have taken is single like phone number, email all separately but when i go for dropdown menu option with multiple choices then how do i code it for email verification

  • @MohamadMeerasa
    @MohamadMeerasa Před rokem

    whether user also receive email like greeting messages? in their gmail?
    how to do that

  • @gangakantjha5723
    @gangakantjha5723 Před 2 lety

    what if I have two submit more than one form on the same website

  • @Hindutwa_life
    @Hindutwa_life Před rokem

    When I do same after button submit it shows conflict 409 help me

  • @Deeneem
    @Deeneem Před 2 lety

    Tried it but getting the 404 error message..how will I link it to an index page

  • @rakeshmhatre1713
    @rakeshmhatre1713 Před 2 lety

    It wont work for me, worked for 2 day but I have not recieve mail afte feeing enquiry

  • @akuarifin
    @akuarifin Před rokem +1

    not work in google workspace, can u help me brother?

  • @gdhanusyasanjeevkumar1119

    Instead of giving me mail it just redirecting users to my php script what should i do???

  • @just-duo5898
    @just-duo5898 Před rokem

    but how do we test it if we dont have access to cPanel?

  • @saikrishna4943
    @saikrishna4943 Před 2 lety

    Bro it's working but I did not get mail from my Email i have hosted in godaddy and i have checked in spam folder also

  • @alltypevideobyakash1572

    cone run success but gmail account not any massage show Why?? plz tell me why

  • @davidlippai9357
    @davidlippai9357 Před 2 lety

    Hi, I've got "405 Not Allowed" message. What can it be? I have made exactly like you, but still.. :(

  • @rizwanjarwar5976
    @rizwanjarwar5976 Před 3 lety

    i added the code in wordpress server i didnt receive any email ??

  • @prashantkumardas369
    @prashantkumardas369 Před rokem

    Does it requires to install xamp software

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

    hello @Codeconia,
    very helpful video. please one more issue. after sending the mail, the redirect does not take me to my thank you page. please can you help with that? i am hosting on hostgator

    • @kennetheniayeye7061
      @kennetheniayeye7061 Před 2 lety

      Hello boss, have you been able to resolve it and did you get the information from your contact form in your mail box?? Looking forward to your reply, thank you.