✉️ PHP Contact Form Tutorial: Sending Email via XAMPP on Localhost

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2023
  • Welcome to our step-by-step tutorial on creating a contact form and sending emails using PHP and XAMPP on your localhost! 🚀
    In this beginner-friendly guide, you'll learn how to build a functional contact form for your website and implement email sending capabilities using the powerful XAMPP server. Whether you're a web development novice or looking to brush up on your PHP skills, this tutorial has got you covered.
    In this video, you will learn:
    Setting up XAMPP on your local machine.
    Creating a simple and secure contact form with HTML and PHP.
    Configuring your XAMPP environment for email sending.
    Sending test emails from your localhost.
    Troubleshooting common issues and debugging your code.
    By the end of this tutorial, you'll have a fully functional contact form on your localhost that can send emails, making it a valuable addition to your web development skill set.
    🔔 Don't forget to subscribe for more web development tutorials, and hit the notification bell to stay updated with our latest content.
    👍 If you find this tutorial helpful, please give it a thumbs up and share it with your friends who might also benefit from this knowledge.
    💬 If you have any questions or run into any issues, feel free to ask in the comments, and I'll do my best to help you out.
    Thanks for watching, and let's get started on your journey to mastering web development and PHP!
    Important Links
    Installing XAMPP & VS Code
    • XAMPP Installation on ...
    Website
    auztuts.com/
    You can join this Facebook group to discuss problems and ask your questions.
    web. groups/93038...
    You can also follow me on Facebook , Twitter and LinkedIn
    Facebook:
    / auz.tutorials
    Twitter:
    / aktar_uz_zaman_
    LinkedIn:
    / md-aktaruzzaman-a16205134

ความคิดเห็น • 37

  • @46_rajashree.s34
    @46_rajashree.s34 3 หลายเดือนก่อน +1

    Thank you so much bro! it helped a lot! it is now correctly working!

    • @auztuts
      @auztuts  3 หลายเดือนก่อน +1

      You are welcome.

  • @Nahida.Sayyed
    @Nahida.Sayyed 5 หลายเดือนก่อน +1

    Thank you very much. It really worked

    • @auztuts
      @auztuts  5 หลายเดือนก่อน

      Great

  • @gamalielrendongomez8300
    @gamalielrendongomez8300 8 หลายเดือนก่อน

    Thank you, it worked for me.

    • @auztuts
      @auztuts  8 หลายเดือนก่อน

      You're welcome!

  • @WPExplained-wp2xp
    @WPExplained-wp2xp 3 หลายเดือนก่อน +1

    Thanks! It worked for me.

    • @auztuts
      @auztuts  3 หลายเดือนก่อน

      Great

  • @eyabouabdallah827
    @eyabouabdallah827 4 หลายเดือนก่อน

    thank you so much , best tutorial ever

    • @auztuts
      @auztuts  4 หลายเดือนก่อน +1

      Glad you liked it!

  • @user-ry7zx7pk5s
    @user-ry7zx7pk5s 4 หลายเดือนก่อน

    thank you very much this has really help me

    • @auztuts
      @auztuts  4 หลายเดือนก่อน

      You are welcome!

  • @technodea2023
    @technodea2023 6 หลายเดือนก่อน +8

    function is working, but mail is not sending

  • @user-uw1vh8ul8g
    @user-uw1vh8ul8g 5 หลายเดือนก่อน +3

    function execution done but im not get the email!

  • @BirtaKelong
    @BirtaKelong 4 หลายเดือนก่อน

    Wow It really worked.

    • @auztuts
      @auztuts  4 หลายเดือนก่อน

      Great. Thank you!

  • @Karol_414
    @Karol_414 7 หลายเดือนก่อน +2

    Hi, I copied your steps. when i write down my name, email etc. the site redirect me to a page saying email sent. I don't get the email in my inbox or my spam folder. I copied your steps in the .ini fiels and palced my gmail there. it still does not work. I even looked if windows defender is not blocking the connection but it does not work. Can you help me?

  • @HasheemNaveed
    @HasheemNaveed 5 หลายเดือนก่อน

    Thanks a bunch man😭

    • @auztuts
      @auztuts  5 หลายเดือนก่อน

      Welcome

  • @kylejoshjamoner
    @kylejoshjamoner หลายเดือนก่อน

    please help me i follow all step then there's no email receive in my gmail but i try to error my code then i input the contacts form and submit i doesn't meet the email sending failed 😭

  • @HaseebKhan-ux2px
    @HaseebKhan-ux2px 5 หลายเดือนก่อน

    yay smtp ki file kha say aen gi

  • @umdonald1399
    @umdonald1399 5 หลายเดือนก่อน

    what of those of us using wamp how do we locate the php-ini there

    • @auztuts
      @auztuts  4 หลายเดือนก่อน

      It should be in the PHP folder

  • @CARLOSEDUARDOHERNANDEZMONTES
    @CARLOSEDUARDOHERNANDEZMONTES 3 หลายเดือนก่อน

    hello i have a problem that is when i´m looking for the password apps on 2FA but it is not the section, do you know why does it happen?

    • @auztuts
      @auztuts  3 หลายเดือนก่อน

      Make sure 2 step verification is turned one and then use this link myaccount.google.com/apppasswords

    • @CARLOSEDUARDOHERNANDEZMONTES
      @CARLOSEDUARDOHERNANDEZMONTES 3 หลายเดือนก่อน

      @@auztuts thx

  • @hanson3951
    @hanson3951 4 หลายเดือนก่อน

    how can i can the infor for php.ini and change it?or just copy the infor video you posted?

    • @auztuts
      @auztuts  4 หลายเดือนก่อน

      No, you will have to find the specific lines of codes and then replace.

    • @hanson3951
      @hanson3951 4 หลายเดือนก่อน

      @@auztutswhere can i find it?

  • @akshithaalladi2769
    @akshithaalladi2769 23 วันที่ผ่านมา +1

    Can u provide the source code

  • @sparshkhasgiwale1983
    @sparshkhasgiwale1983 8 หลายเดือนก่อน

    mine is not working email fuction is called but rthe email is not in the inbox

    • @auztuts
      @auztuts  7 หลายเดือนก่อน

      Please make sure you watch the tutorial from first to last. The last part is very important. Also don't forget to restart the modules in the XAMPP server.

  • @ronrivero1533
    @ronrivero1533 4 หลายเดือนก่อน

    what if I am using a live server, where I can locate sendmail and php.ini to my cPanel to change the configuration?

    • @auztuts
      @auztuts  4 หลายเดือนก่อน

      HI, this tutorial is only for the ones who are using local server. If you want to do in cPanel you will have to check with hosting if they provide SMTP for sending email.

    • @ronrivero1533
      @ronrivero1533 4 หลายเดือนก่อน

      @@auztuts what if they have already provided the SMTP details to me, such as Host, Port, Username and Password. Where should I find it and replace it to the cPanel?

  • @Redllowge_
    @Redllowge_ 3 หลายเดือนก่อน

    Umhh there its a problem, when i finish, i click on send and this message appear:
    Warning: require(path/to/PHPMailer/src/Exception.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\contact-form\process.php on line 5
    Fatal error: Uncaught Error: Failed opening required 'path/to/PHPMailer/src/Exception.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\contact-form\process.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\contact-form\process.php on line 5

    • @auztuts
      @auztuts  2 หลายเดือนก่อน

      You are missing process.php file. Please create the file first.