How To Send Email Using PHP With PHP Mailer | PHP Send Email | Full Step By Step

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ • 444

  • @simas2313
    @simas2313 2 роки тому +27

    This video helped me alot... I had my website on some server and that server is not allowing php mail function, due to which i changed my hosting server. Later i had to change to initial one again and they told me you can use SMTP function for emails. Thanks again

    • @DavidGTech
      @DavidGTech  2 роки тому +5

      Glad to hear that! You're welcome, thanks for watching...

    • @abanwaraphael1526
      @abanwaraphael1526 2 роки тому +1

      Please, I am having the same problem. What changes did you make? How did you resolve it?

    • @hashmatmohammed5807
      @hashmatmohammed5807 Рік тому

      @@abanwaraphael1526 same problem...plz help me

    • @su-cathy6156
      @su-cathy6156 Рік тому

      ​@@hashmatmohammed5807😮

  • @devshehan
    @devshehan Рік тому +21

    Thank you . I were stucked whole night on my university project. Finally you saved me.

    • @DavidGTech
      @DavidGTech  Рік тому +4

      You're welcome! I'm glad that my work could help you with your university project. If you have any further questions or need any additional help, don't hesitate to reach out. Best of luck with your studies!

    • @jaadoo3591
      @jaadoo3591 10 місяців тому

      what was your project

  • @ismailrukan
    @ismailrukan Рік тому +24

    Finally, Email has been sent Successfully.

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Congratulations on successfully sending your email using PHPMailer! I'm glad to hear that the tutorial was helpful and that you were able to achieve your goal. If you have any other questions or if there's anything else I can help you with, please don't hesitate to ask. Thanks for watching!

  • @CanalJIT
    @CanalJIT 9 місяців тому +3

    Your video saved me. I spent 6 hours looking for good tutorials and yours is the only one that worked. Thank you so much, keep up with your good job.

    • @muchSwagcom
      @muchSwagcom 8 місяців тому

      How the App Passwords in the google account is missing

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @CanalJIT,
      I'm so glad to hear my video helped you! 😊 It means a lot to know that my tutorial worked for you after your extensive search. Thank you so much for your kind words and support. I'll keep working hard to create more helpful content. 👍

    • @DavidGTech
      @DavidGTech  7 місяців тому +1

      Hi @muchSwagcom,
      If the App Passwords option is missing in your Google account, it might be because two-factor authentication (2FA) is not enabled. App passwords are only available if 2FA is turned on. To enable it, go to your Google account security settings, enable 2FA, and then you should see the option to generate app passwords. Hope this helps! 😊

  • @claucastro8381
    @claucastro8381 Рік тому +3

    Thank you! I was struggling to get this working for 2-3 hours before I stumbled upon your video.

    • @DavidGTech
      @DavidGTech  Рік тому

      Great! You're welcome.. Thanks for watching!!

  • @Apricot0034
    @Apricot0034 2 роки тому +10

    Thanks man, thanks to this video I solved the error and saved my sanity!

    • @DavidGTech
      @DavidGTech  2 роки тому +1

      You're welcome! Thanks for watching...

  • @minasamaan1208
    @minasamaan1208 Рік тому +4

    Thanks a lot after trying 4 days hardly with many researches to to send the email I did it successfully thanks to you.

    • @DavidGTech
      @DavidGTech  Рік тому

      You're very welcome! I'm happy to hear that my content was able to help you solve the problem you were having with sending emails. If you have any further questions or need any additional assistance, please don't hesitate to ask.

  • @himajpatil
    @himajpatil Рік тому +4

    Love youu guy______this video helped me a lot after trying for 2hours finally happenned in two minutes

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Glad to hear that! Thanks for watching...

  • @Adomas_B
    @Adomas_B 2 роки тому +5

    3 gruelling hours of debugging and head-scratching and finally this tutorial woks

  • @bohdanreshe7484
    @bohdanreshe7484 Рік тому +11

    Thank you, David!
    Still helpful
    I have solved my task
    Subscribed!

    • @DavidGTech
      @DavidGTech  Рік тому

      You're welcome! I'm glad to hear that the content was helpful and that you were able to solve your task. Thank you for subscribing as well! If you have any further questions or if there's anything else I can assist you with, please don't hesitate to let me know.

  • @caronpereira6918
    @caronpereira6918 5 місяців тому +1

    Thank you so much for this! Was stuck with this issue for a long time. Really grateful! God bless and do make more helpful videos such as this. Subscribed!

  • @Razlan-Education-Center
    @Razlan-Education-Center 13 днів тому

    Thanks so much due to this video i learned a lot. wish you all the success in your entire access. please keep going and teach us the new things

  • @zerubbabelgovernor9867
    @zerubbabelgovernor9867 2 місяці тому

    Wow,, thanks, Man for saving. After sitting down for weeks trying to figure something out but to no avail, then you came to my aid.. thanks man

  • @YashSingh-ym4yi
    @YashSingh-ym4yi Рік тому +2

    owesome i have the fear of this code but i have done .. thank you sir .. you resolve my problem

    • @DavidGTech
      @DavidGTech  Рік тому

      Glad to hear that!!! You're very welcome!!! Thank you for watching!!!

  • @SandeepThaliyil
    @SandeepThaliyil 2 роки тому +7

    Thanks man. Your video helped me configure phpmailer.🙂

    • @DavidGTech
      @DavidGTech  2 роки тому

      You're welcome! Thanks for watching...

  • @zaynebuere
    @zaynebuere Рік тому +6

    Thank you so much, you save my team sir 🤗

    • @DavidGTech
      @DavidGTech  Рік тому

      You're very welcome! I'm glad that I could help save your team. If you need any further assistance in the future, please don't hesitate to reach out to me.

  • @CodePraiseGod-oj9ig
    @CodePraiseGod-oj9ig 10 місяців тому +2

    thank you, i have been finding suitable video for many days

    • @DavidGTech
      @DavidGTech  7 місяців тому

      @CodePraiseGod-oj9ig
      You're welcome! If you have any more questions or need further assistance, feel free to ask. I'm here to help you with anything related to PHP, MySQL, or any other programming topics you may have. Happy coding!

  • @msmalik6610
    @msmalik6610 Рік тому +4

    Thanku so much u save my 3 4 days this video very helpful thank you so much 🥰🥰

    • @DavidGTech
      @DavidGTech  Рік тому

      You're welcome! I'm glad to hear that the video was helpful and saved you time. If you have any more questions or need further assistance, please don't hesitate to ask. Have a great day!

  • @dominikpiszczek7062
    @dominikpiszczek7062 Рік тому +5

    Simple, fast, with every step needed. Just great. Thank you!

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Thank you so much for your positive feedback! I'm glad you found the tutorial simple, fast, and comprehensive. Thank you for watching the video!

    • @naturelife9647
      @naturelife9647 Рік тому

      ​@@DavidGTechClass PHPMailer not found

  • @BlueSouls
    @BlueSouls Рік тому +2

    ty mai fren, new suscraiber and one mor like.

    • @DavidGTech
      @DavidGTech  Рік тому

      You're welcome!!! Thanks for watching...

  • @blockedrt3
    @blockedrt3 2 роки тому +9

    Thank you 😭 you have just saved me from myself

    • @DavidGTech
      @DavidGTech  2 роки тому +1

      You're welcome!!! Thanks for watching.

  • @edgarssva6359
    @edgarssva6359 2 роки тому +5

    subscribed! will watch every video from now on!

  • @lildive
    @lildive Рік тому +1

    wow look how fast i learnt from your videos. its simple and easy to understand

    • @DavidGTech
      @DavidGTech  Рік тому

      Hey @lildive,
      Wow, I'm absolutely thrilled to hear that you found the tutorial helpful and learned quickly! 🚀 It's fantastic to see your progress. If you ever have more questions or if there's anything specific you'd like to learn, feel free to drop a comment or reach out.
      Keep up the fantastic work, and happy coding! 🌟

  • @AzaMan-c5h
    @AzaMan-c5h 4 місяці тому

    this is the best video ever when it comes to getting aid on php mailer , thanks alot , it worked

  • @foxynight1688
    @foxynight1688 Рік тому +6

    Thank you so much for this video it really helpful for me to finish my project assignment!!!🙏🙏

    • @srabonx
      @srabonx Рік тому +2

      Did it work with Gmail?

    • @dgt1309
      @dgt1309 Рік тому +1

      ​@@srabonxYes

    • @DavidGTech
      @DavidGTech  Рік тому +2

      You're welcome! I'm glad to hear that the video was helpful for you in completing your project assignment. If you have any further questions or need any more assistance, feel free to let me know!

  • @webdesigntom
    @webdesigntom Рік тому +1

    Thank you so much! Helped solve my problem but now Ive got more questions. lol

    • @DavidGTech
      @DavidGTech  11 місяців тому +1

      Hi @tomshobbylife,
      You're very welcome! I'm glad to hear that the video helped you solve your initial problem. Don't worry about having more questions-that's completely normal, and I'm here to help!
      Feel free to ask any additional questions you have about sending emails with PHP using PHP Mailer. Whether it's about customization, troubleshooting, or any related topic, I'm here to assist you. Just drop your questions in the comments, and I'll do my best to guide you through.
      Keep up the good work, and happy coding! 🚀

    • @webdesigntom
      @webdesigntom 11 місяців тому

      @@DavidGTech thank you so much. I will reach out if anything pops up. I think a lot of my problem is practice. Time is so hard to find to practice and I'm struggling. Lol. Again thank you for your help and being available.

  • @roylopez6892
    @roylopez6892 2 роки тому +6

    Thank you very much, it helps a lot with my project.😀😀😀

    • @DavidGTech
      @DavidGTech  2 роки тому

      You're welcome!!! Thanks for watching...

  • @surafelkaleab5902
    @surafelkaleab5902 Рік тому +2

    Simple and straightforward men

    • @DavidGTech
      @DavidGTech  Рік тому

      Thank you @surafelkaleab5902!!!

  • @gokulgokul7523
    @gokulgokul7523 8 місяців тому +2

    this video saved my job thankyou bro

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @gokulgokul7523,
      I'm so glad to hear that! 😊 Thank you for letting me know, and I'm happy I could help!

  • @daniel_youtubechannel8717
    @daniel_youtubechannel8717 Рік тому +3

    I don't know how to thank You. you've done a great work for me.

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Thank you so much for your kind words! I'm thrilled to hear that the tutorial was helpful to you. If you have any more questions or need further assistance, feel free to ask me.

    • @samuelnicholas9694
      @samuelnicholas9694 Рік тому

      ​@@DavidGTech❤❤

  • @samuelnicholas9694
    @samuelnicholas9694 Рік тому +2

    Thank you for the video, wish you all the best

  • @mikiyasgetnet2419
    @mikiyasgetnet2419 Рік тому +6

    Thank you, sir!!! it really helps!

    • @DavidGTech
      @DavidGTech  Рік тому

      You're very welcome! I'm glad to hear that my content was helpful to you. If you have any more questions or topics you'd like me to cover, please don't hesitate to let me know. Best of luck!

  • @deepeshdotwibe
    @deepeshdotwibe Рік тому +2

    thank u sir l have solved my task

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Great!!! You're very welcome!!! Thanks for watching!!!

  • @nitheesha2298
    @nitheesha2298 Рік тому +3

    Thank u so much ,finally made it🤗

    • @DavidGTech
      @DavidGTech  Рік тому

      You're welcome! Thanks for watching.

  • @rajpuri5109
    @rajpuri5109 7 місяців тому +1

    Thanks brother, it worked because of you.

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @rajpuri5109,
      Glad to hear that! 😊 Happy to help, and thanks for watching!

  • @vedantpurohit5032
    @vedantpurohit5032 Рік тому +2

    You are legend for sure thanks mate ! God bless you

    • @DavidGTech
      @DavidGTech  Рік тому

      You're welcome mate, God bless you too!!! By the way, I have made other video like this too but more easy because with JavaScript only ua-cam.com/video/l8R7O4zckj8/v-deo.html, hope this video can help you more!!

  • @pavlusa
    @pavlusa 2 роки тому +5

    Very cool info thank you ... subscribed🙂

    • @DavidGTech
      @DavidGTech  2 роки тому

      You're welcome! Thanks for watching and subscribe...

    • @pavlusa
      @pavlusa 2 роки тому

      @@DavidGTech I happy to found info like these .. , thanks for that.

  • @siphiwenkosi7878
    @siphiwenkosi7878 Рік тому +1

    Thank you man, it worked like a charm

  • @vikramjha6829
    @vikramjha6829 Рік тому +3

    This video helped me alot .

    • @DavidGTech
      @DavidGTech  Рік тому

      I'm glad to hear that the video was helpful for you! Thank you for taking the time to share your feedback. If you have any further questions or if there's anything else I can assist you with, please don't hesitate to let me know.

  • @MargotHemsworth
    @MargotHemsworth Рік тому +1

    Thanks so much it really helped me out 😊

  • @tahabahlak480
    @tahabahlak480 Рік тому +2

    Bro thank you a lot you are awesome🥰

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Great! You're welcome, thanks for watching!!!

  • @poojajaiswal1303
    @poojajaiswal1303 Рік тому +2

    Thank you. It is very helpful.

    • @DavidGTech
      @DavidGTech  Рік тому

      You're welcome! I'm glad to hear that the information was helpful for you. If you have any further questions or need any additional assistance, please don't hesitate to reach out.

  • @mdmusaddique_cse7458
    @mdmusaddique_cse7458 Рік тому +3

    Thanks a lot
    It was helpful!

    • @DavidGTech
      @DavidGTech  Рік тому

      Glad it helped! You're welcome!!! Thanks for watching...

  • @davitdavtyan8822
    @davitdavtyan8822 Рік тому +1

    thank you very much it helped me alot

    • @DavidGTech
      @DavidGTech  Рік тому

      Glad to hear that! You're welcome!

  • @swatik5809
    @swatik5809 Рік тому +1

    Thank You so uch ... it was helpful

    • @DavidGTech
      @DavidGTech  Рік тому

      Glad to hear that! You're welcome!!! Thanks for watching...

  • @akindelesamuelkehinde6817
    @akindelesamuelkehinde6817 Рік тому +2

    you solved my problem thanks

    • @DavidGTech
      @DavidGTech  11 місяців тому +2

      You're very welcome!

  • @paced9645
    @paced9645 Рік тому +1

    Nice tut video bro, thanks

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Thank you so much for your kind words!

  • @QuantumNebula42
    @QuantumNebula42 Рік тому +1

    Please make more video like this sir

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Hi @QuantumNebula42,
      Thank you so much for your kind words and the request! I'm delighted that you found the video helpful. Your feedback encourages me to create more content. If you have any specific topics or concepts you'd like me to cover in future videos, please feel free to share your suggestions. I'm here to help and create content that meets your interests. Stay tuned for more, and happy coding! 🚀😊

  • @mufeezhanif
    @mufeezhanif Рік тому +2

    thank you so much for making this video

    • @DavidGTech
      @DavidGTech  Рік тому

      You are so welcome! Thanks for watching...

  • @ronaldeusebio5190
    @ronaldeusebio5190 Рік тому +1

    Thanks friend you help me a lot

    • @DavidGTech
      @DavidGTech  Рік тому

      You're very welcome! I'm glad that my tutorial was able to assist you. It's always a pleasure to hear that my content is helping people and making a positive impact. If you have any further questions or feedback, please don't hesitate to reach out. Thank you for taking the time to leave a comment and let me know that my tutorial was helpful to you.

  • @daniallo1375
    @daniallo1375 2 роки тому +4

    thx for the video but why the email is FROM the email inside the SENT section of the email, instead of TO the email in the INBOX

    • @DavidGTech
      @DavidGTech  Рік тому

      Thank you for watching my video!! The email's "FROM" address is typically set to the sender's email address to ensure that recipients can see who sent the email. The "TO" address, on the other hand, represents the email address of the recipient in the inbox.
      If you have any further questions or need more clarification, feel free to ask!

  • @jordan-h4l7w
    @jordan-h4l7w Рік тому +1

    you helped me so much honestly!

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Thank you so much for your kind words! I'm thrilled to hear that I was able to help you. If you have any more questions or need further assistance, please feel free to ask. I'm here to help you!

  • @jonathanbenaya5078
    @jonathanbenaya5078 2 роки тому +5

    good video, very educative

  • @nifabamorycoulibaly9112
    @nifabamorycoulibaly9112 Рік тому +2

    thank You very much

    • @DavidGTech
      @DavidGTech  Рік тому

      You are welcome!! Thanks for watching!!!

  • @angelaboniface-u3v
    @angelaboniface-u3v Рік тому +2

    thank you Subscribed!

    • @DavidGTech
      @DavidGTech  Рік тому +1

      You're welcome! Thanks a lot!!!

  • @lambada.306
    @lambada.306 Рік тому +1

    Thank you so much David

    • @DavidGTech
      @DavidGTech  Рік тому

      You are very welcome!!! Thanks for watching!!!

  • @denniskoome5319
    @denniskoome5319 Рік тому +2

    Nice video
    👍 my texts are landing to the spam instead of inbox though.

  • @HichemMansouri-m6u
    @HichemMansouri-m6u 11 місяців тому

    I can't stop dancing with a music like that :'D ...and i can't work too...thx for this tuto

    • @DavidGTech
      @DavidGTech  11 місяців тому

      🤣🤣🤣👍👍, you're welcome!

  • @scorchlights1316
    @scorchlights1316 2 роки тому +2

    The requested URL was not found on this server.
    Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.6 Server at localhost Port 80 ?
    Help? :c

    • @mikiyasgetnet2419
      @mikiyasgetnet2419 Рік тому +2

      if u have an antivirus running on ur pc,disable it and try it again.....if this doesnt work try to re-install your xamp server without blocking any features of it

    • @DavidGTech
      @DavidGTech  Рік тому

      Thank you for reaching out and bringing this issue to my attention. I'm sorry to hear that you encountered the error message. This error message is usually related to a server configuration problem, and it seems like there might be a misconfiguration or an issue with your local server settings. Here are a few steps you can follow to troubleshoot and potentially fix the problem:
      - Double-check the URL: Make sure you've entered the correct URL in your browser. Verify the protocol (http/https) and the path to the PHP script or file you are trying to access.
      - Check the file's location: Ensure that the PHP script you are trying to access is in the correct directory on your local server. The file path specified in the URL should match the actual location of the PHP file.
      - Restart your server: Sometimes, restarting your local server can resolve temporary configuration issues. Stop and restart your Apache server and try accessing the URL again.
      - Review server logs: Check the Apache server logs for any error messages or clues about the issue. Error logs can provide valuable information that might help identify the problem.
      I hope these steps help you in resolving the problem. If you have any further questions or encounter any other issues, don't hesitate to let me know, and I'll do my best to assist you.

  • @liskookmanoban6023
    @liskookmanoban6023 Рік тому +1

    Thank you for helping!

    • @DavidGTech
      @DavidGTech  Рік тому

      You're very welcome @liskookmanoban6023!!!

  • @sameerasmr6217
    @sameerasmr6217 2 роки тому +3

    Very good I hope you are from software engineering degree 👍🙏

    • @DavidGTech
      @DavidGTech  2 роки тому +2

      Yes, I am. Thank you for watching!

  • @aryankhairwal
    @aryankhairwal Рік тому +1

    Thank you so much ❤

  • @thegoat2936
    @thegoat2936 2 роки тому +2

    Hey guy
    Thank u so much, its perfectly work
    Now how can I design my email message body (template)

    • @DavidGTech
      @DavidGTech  2 роки тому +1

      You're welcome! Thanks for watching...

  • @monkyout
    @monkyout Рік тому +1

    Thank you very much.

    • @DavidGTech
      @DavidGTech  Рік тому

      You're very welcome!!! Thanks a lot for watching!

  • @Mobile_Gameplay_
    @Mobile_Gameplay_ Рік тому +2

    Thanks alot ❤️❤️❤️

  • @GabRiel-nf5vo
    @GabRiel-nf5vo 10 місяців тому

    thank youuuuu. this video helped a lot

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @GabRiel-nf5vo,
      Thank youuuuu! 😊 I'm glad the video helped you a lot!

  • @SakthiGanapathiS
    @SakthiGanapathiS Рік тому +1

    tq for the tutorial

    • @DavidGTech
      @DavidGTech  Рік тому

      You're very welcome!!! Thanks a lot for watching!

  • @김준혁-z3n
    @김준혁-z3n 2 роки тому +5

    아 너무 감사합니다 !!! So~~~~~ Thanks You !!!

    • @DavidGTech
      @DavidGTech  2 роки тому +2

      You're welcome!!! Thank you for watching my video...

  • @basgotech9725
    @basgotech9725 2 роки тому +1

    Thank You Very Much its work

    • @DavidGTech
      @DavidGTech  2 роки тому +1

      You're welcome! Thanks for watching...

  • @jeffborras946
    @jeffborras946 Рік тому +2

    very helpful 👍

    • @DavidGTech
      @DavidGTech  Рік тому +1

      Glad to hear that! Thanks for watching...

  • @muhammadbabar9836
    @muhammadbabar9836 11 місяців тому +1

    How to add multiple addresses? Can add that email which is not associate with actaual email and Pass?

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @muhammadbabar9836! To add multiple email addresses, you can separate them with commas. For sending emails from an address not associated with the actual email and password, you need to set the 'From' field in PHPMailer, but make sure you have permission to use that address.

  • @VirajDias-e5k
    @VirajDias-e5k Рік тому +1

    Thanks a lot for sharing

  • @AminulIslam-lw5jd
    @AminulIslam-lw5jd 2 роки тому +1

    Can we add more field like phone number address or anything? Please solve this.

    • @DavidGTech
      @DavidGTech  Рік тому

      Thank you for watching my video and sharing your thoughts! I appreciate your feedback and interest in expanding the content.
      In the current video, I focused on demonstrating how to send emails using PHP with PHP Mailer. However, I understand that adding more fields like phone number and address could be valuable for some viewers.
      To address your request, I'll consider creating a follow-up video that covers additional fields and customization options. This way, we can explore more functionalities and make the process even more practical for a broader audience.
      Keep an eye on my channel for future updates and new content. If you have any other specific suggestions or questions, feel free to let me know, and I'll do my best to help.

  • @Harleenkaur-yp2el
    @Harleenkaur-yp2el Рік тому +3

    U saved me😊

    • @DavidGTech
      @DavidGTech  Рік тому

      Glad to hear that!!! Thanks for watching

  • @thaovan2728
    @thaovan2728 2 роки тому +2

    why is it giving an error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. Failed to connect to server in . Someone help me!!!!

    • @de48brinformatique52
      @de48brinformatique52 Рік тому

      I got the same problem, do you have a solution?

    • @dansonmwangi5660
      @dansonmwangi5660 Рік тому +1

      @@de48brinformatique52 Check your interrnet connection.

    • @DavidGTech
      @DavidGTech  Рік тому +1

      If you're receiving an error message like "Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. Failed to connect to server", it usually means that there is an issue with your SMTP settings or your server is not able to connect to the SMTP host.

  • @Alberto-ji9ql
    @Alberto-ji9ql Рік тому +1

    why doesn't he send the requests to me, but if one includes his mail does it get to him? I want all requests to go to my email

    • @DavidGTech
      @DavidGTech  Рік тому

      Thank you for your comment! In the video tutorial, the demonstration might include sending the requests to a specific email address for the sake of simplicity and illustrating the email sending process. However, you can modify the code to make sure that all the requests are sent to your desired email address.

  • @sanjay3396
    @sanjay3396 Рік тому +1

    Broo thnkss a lot ! Can i change the message on my own in these ?

    • @DavidGTech
      @DavidGTech  Рік тому

      Hey @sanjay3396,
      You're welcome! I'm glad you found the tutorial helpful. 😊 Absolutely, you can customize the email message to make it your own. In the PHP code, look for the part where the email body is set (usually using the Body or msgHTML method in PHPMailer).
      Feel free to modify the content within the quotation marks to tailor the message to your preferences. Make it as personal or professional as you need!
      If you have any questions while customizing the message or if there's anything else you'd like to learn, feel free to ask. Happy coding! 🚀

  • @axirsss8664
    @axirsss8664 Рік тому +2

    Bro what editor are you using?

  • @kabuto2664
    @kabuto2664 Рік тому +1

    Hello, thanks for This tutorial.
    But I got problem.
    After starting it in localhost, while sending mail I got error:
    Mailer Error: Message body empty
    What is wrong?

    • @DavidGTech
      @DavidGTech  Рік тому

      Thank you for reaching out and I'm glad you found the tutorial helpful! Regarding the error message you received, "Mailer Error: Message body empty," it typically indicates that the email you're trying to send does not have any content in the body. Please ensure that you have specified the content of your email message properly. Make sure you have added the necessary text or HTML content to the body of the email.

    • @kabuto2664
      @kabuto2664 Рік тому

      Thanks for answering! I figured it out now. I finished my webpage for exam. Thanks!

  • @smitsathvara-k5p
    @smitsathvara-k5p 10 місяців тому +1

    Can you when i click on plce order it will automatically send on user account how to do this in php

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @user-le3xq7nx3h,
      To automatically send an order confirmation to the user account upon clicking "Place Order," you can use PHPMailer or the mail() function in PHP to send an email. Here's an example using PHPMailer:
      $mail->addAddress($user_email); // Add the user's email address here
      $mail->Subject = 'Order Confirmation';
      $mail->Body = 'Your order has been placed successfully.';
      $mail->send();
      Replace $user_email with the user's email address.

  • @mutabazigmatthew4632
    @mutabazigmatthew4632 Рік тому +2

    Thank you!! was stack

    • @DavidGTech
      @DavidGTech  Рік тому +1

      You're welcome!!! Thanks for watching.

  • @feyli-p6f
    @feyli-p6f Рік тому +1

    epic this works thanks dude

    • @DavidGTech
      @DavidGTech  Рік тому +2

      Hi @user-ug3qj3gv9j, I'm thrilled to hear that the tutorial worked for you! 😊 If you have any more questions or if there's anything else you'd like to learn, feel free to let me know. Happy coding!

  • @vale-mg7ws
    @vale-mg7ws Рік тому +2

    thank you ssoooooo mmmmuuuuuccchhhh!!!

    • @DavidGTech
      @DavidGTech  Рік тому +1

      You're very welcome!!! Thanks for watching!!!

  • @AISMOOTHIEPH99
    @AISMOOTHIEPH99 4 місяці тому

    6:08 email port is the default number?

  • @halimal7510
    @halimal7510 9 місяців тому +1

    i copy your code 100% except the email addres and password but when i click submit button on form it getting me to the send.php file and in browser sent 405 error 'this page isnt working' what's wrong then?

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @halimal7510,
      A 405 error usually means that the HTTP method is not allowed. Make sure your form is using the correct method (POST or GET) and that your server is configured to handle it. Double-check your server settings and let me know if you need more help! 😊

  • @Dead_Soul77
    @Dead_Soul77 11 місяців тому +1

    Thank you. It worked.

    • @DavidGTech
      @DavidGTech  7 місяців тому

      @Dead_Soul77 You're welcome! I'm glad to hear that it worked for you. If you have any other questions or need more help, feel free to reach out!

  • @ErtuğrulSefaTaşdemir
    @ErtuğrulSefaTaşdemir 10 місяців тому +1

    Hello sir,
    i want to ask a question.
    I want to do a form,people fill the form and send it to me without their email,i want to use my other email for all messages.I mean when they send the message the message come to me from my other email.Is it possible? and sorry for my bad english,
    Thanks from now.

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @user-cc2tr7xs9f,
      Yes, it's possible to set the "From" email address to your other email address when sending messages from a form. You can do this using PHPMailer or the mail() function in PHP. Here's an example using PHPMailer:
      $mail->setFrom('yourotheremail@example.com', 'Your Name');
      Replace 'yourotheremail@example.com' with your other email address.

  • @RifqiEvaldo
    @RifqiEvaldo 2 роки тому +3

    Mantappp mas 👍👍

  • @deltapaplo342
    @deltapaplo342 Рік тому +1

    Generated app password not fond in my email ?? What solutions??

    • @DavidGTech
      @DavidGTech  Рік тому +1

      There are a few things you can try:
      - Check your spam folder in Gmail: The generated email may have been flagged as spam by your email provider and redirected to your spam folder.
      - Check your email settings: Make sure that your email settings are configured correctly to receive emails, and that any filters or rules you have set up are not preventing the email from being delivered.

    • @deltapaplo342
      @deltapaplo342 Рік тому

      @@DavidGTech Thank you. I have found the problem. I have changed the settings for taking a code from the email. I would like the same method for Outlook Is it possible, if possible ?

  • @vikasdfghjlYT
    @vikasdfghjlYT 2 роки тому +2

    Works Perfectly

  • @JohnRoqueRSadaya
    @JohnRoqueRSadaya 2 роки тому +2

    thank bro it working but how can send email to other email account? tia

    • @DavidGTech
      @DavidGTech  2 роки тому

      Just write gmail account name in email input

  • @andresdrimer
    @andresdrimer 11 місяців тому +1

    thank you!!! it works :)

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @andresdrimer! You're welcome! I'm glad to hear it works for you. Enjoy using the solution!

  • @nurbainggit
    @nurbainggit Рік тому +1

    Tysm David

  • @fatimabeddaoui1351
    @fatimabeddaoui1351 2 роки тому +1

    thanks guy it's solved !

    • @DavidGTech
      @DavidGTech  2 роки тому +1

      You're very welcome! Thanks for watching...

  • @_.k_a_n_n_u._544
    @_.k_a_n_n_u._544 Рік тому

    In case of live project what will we do . Because we can't ask client to create app password or etc .is there any way to do it without password???

    • @DavidGTech
      @DavidGTech  Рік тому

      Great question! Protecting sensitive information in a live project is crucial. In cases where you can't ask the client for passwords, you can implement OAuth or API tokens to access their services securely. This way, you won't need direct access to their credentials, and the client can control access permissions. Additionally, you can explore environment variables and configuration files to store sensitive data securely on your server. Make sure to follow best practices for security to keep your project safe. Hope this helps!

  • @Life17768
    @Life17768 11 днів тому

    Thank you, i was worked

  • @BekkalFtah
    @BekkalFtah Рік тому

    i have a problem about a turning on 2-step virification google remove this option in the laste update

    • @DavidGTech
      @DavidGTech  Рік тому

      In the latest update, Google still have 2 step verification option

  • @Pro_07-k4r
    @Pro_07-k4r 9 місяців тому +1

    Thanks a lot, sir

    • @DavidGTech
      @DavidGTech  7 місяців тому

      Hi @ON10_RIYA_,
      You're welcome! 😊 Glad I could help!

  • @jadls1792
    @jadls1792 2 роки тому +2

    email is working but i haven't received any email i need some help please

    • @DavidGTech
      @DavidGTech  2 роки тому

      Maybe you should check in your spam email or that your codes that aren't fully correct

    • @jadls1792
      @jadls1792 2 роки тому +1

      @@DavidGTech its all working i resolved it within the day i commented it . I just forgot to reply to my comment hahha by the way thanks for the tutorial.

    • @DavidGTech
      @DavidGTech  2 роки тому

      I'm so glad to see this your reply. You're welcome! Thanks for watching...

  • @frankgp.python-php
    @frankgp.python-php Рік тому +2

    Thank 👍

    • @DavidGTech
      @DavidGTech  Рік тому +2

      You're welcome!!! Thanks for watching.