Configure Localhost to Send Email in PHP using Gmail

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 33

  • @headshot0123456789
    @headshot0123456789 Год назад +3

    This is the clearest instruction video so far. Thank you a lot

  • @swh017
    @swh017 Год назад

    Great guide. Easy to follow. Mine did not work until I saw in your wrap up (22:20 point in the video) a quote mark after the -t in the sendmail_path configuration line. It should look like this
    sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
    In the text below the video I see the quote mark is there. I just missed in when I reviewed the script
    Thank you very much.

  • @Richartichaut
    @Richartichaut 5 месяцев назад

    Thanks a lot ! You are the only one I could find that explained how to do that

    • @876WilliamsTechJA
      @876WilliamsTechJA  5 месяцев назад

      I'm glad that my explanation was helpful. All the best!

  • @franciscopinto7141
    @franciscopinto7141 Год назад +1

    After searching so much, just needed to follow ur video, thanks for your help!

  • @tsxxtejas5106
    @tsxxtejas5106 10 месяцев назад

    broh i was trying this thing from so much time i saw ur video and it ran successfully......................... much thankssssssss

  • @sachinGupta-kz1wy
    @sachinGupta-kz1wy 8 месяцев назад

    your videos are very clear and to the mark, explanations are perfect. thanks a lot. worked

  • @Dayhmian
    @Dayhmian Год назад

    Finally, it works. Thanx. And subbed

  • @muhammad-qasim-profile
    @muhammad-qasim-profile 8 месяцев назад

    Thanks, you explained nicely.

  • @devansafhu5110
    @devansafhu5110 Год назад +1

    Dear friend... thank you so much for this video, which has given me a good understanding of php mail. If possible, could you also explain how to attach a file with the email. Thank you so much...

    • @876WilliamsTechJA
      @876WilliamsTechJA  Год назад

      This might be helpful ruclips.net/video/fme7dCoQBrA/видео.html

  • @Itsdanie1l
    @Itsdanie1l Год назад +1

    This is a very great video it worked but i have a question is it possible to change the sender's mail in the php code or can i only change it in those files thanks a lot.

    • @876WilliamsTechJA
      @876WilliamsTechJA  Год назад

      You can change it in the PHP code. However, you still have to set up those files. You can also set a reply to email in the PHP code. I hope my reply answers your question.

  • @jovanssemivule8756
    @jovanssemivule8756 4 месяца назад

    Thanks for the video. But even after following step by step the email is still not in my inbox yet on the console it shows sent succesfully what could be the problem

    • @876WilliamsTechJA
      @876WilliamsTechJA  4 месяца назад

      Hey Jovan. I'm not sure if you fixed the problem, but if haven't then go back over the configuration files and double-check the value/parameters entered. Let me know if it's working.

  • @abdobebo9192
    @abdobebo9192 10 месяцев назад

    Sir I followed u step by step But I got Error Or Warning If u Can Help Me...
    Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\ecommercephp\test.php on line 11
    E-Mail Sent Failed

    • @876WilliamsTechJA
      @876WilliamsTechJA  10 месяцев назад +1

      Hey Abdo, it seems that you're attempting to send via port 25. Double check the port in your configuration files.

    • @abdobebo9192
      @abdobebo9192 10 месяцев назад

      Thanks For Replying to me but i sloved that problem and got a new error or warning is "Warning: mail(): SMTP server response: 530 SMTP authentication is required. in C:\xampp\htdocs\ecommercephp\test.php on line 9" sir @@876WilliamsTechJA

    • @abdobebo9192
      @abdobebo9192 10 месяцев назад

      ​@@876WilliamsTechJA Thanks For Replying To Me Sir,But I Want To Understand One Thing U Made Value "$header = "ur gmail but there is word "teaches" " I Should Write That Or What,I Followed u step by step I got in chrom "Success" But There Is no Message Or Mail Send to My Gmail...

    • @abdobebo9192
      @abdobebo9192 10 месяцев назад

      Sir I Got "Success" But There Is no Message Or Mail Sent To My Gmail...?@@876WilliamsTechJA

    • @abdobebo9192
      @abdobebo9192 10 месяцев назад

      Sir I Got "Success" But Message Or Mail Didn't send To my gmail?@@876WilliamsTechJA

  • @NoName-yw1pt
    @NoName-yw1pt Год назад

    But I don't have sendmail folder in xampp

    • @876WilliamsTechJA
      @876WilliamsTechJA  Год назад

      All the years I have been using XAMPP to run my PHP code I have never encountered that issue. So, I can only make suggestions on this and not a definite solution. 1) Firstly, you can back up all the projects you have in your htdocs folder, so you don't lose them and then reinstall XAMPP. Ensure that the Fake Sendmail option is selected, it might make a difference. Use this video as a guide if needed, ruclips.net/video/ZcveHM4hyHs/видео.htmlsi=YQdYE_ccd_S9MxrP. 2) Use PHPMailer and a free SMTP server like Brevo (Sendinblue) Use this video as a guide if needed, ruclips.net/video/wgMVmFogQ94/видео.htmlsi=VsAc-t2M3dw3YWF9. Let me know if you find a solution.

    • @NoName-yw1pt
      @NoName-yw1pt Год назад

      @@876WilliamsTechJA Ah yes. I installed it again and now the folder is there. Thank you very much!

    • @876WilliamsTechJA
      @876WilliamsTechJA  Год назад

      @@NoName-yw1pt awesome

  • @lauryneeklou8346
    @lauryneeklou8346 5 месяцев назад

    Merci beaucoup🤍🤍I do it.