How to Configure XAMPP to Send Mail From Localhost? Send Mail From Localhost XAMPP Using Gmail

Sdílet
Vložit
  • čas přidán 21. 02. 2023
  • To configure XAMPP server to send mail from localhost we have to make changes to two files sendmail.ini and php.ini. Open the xampp folder. By the name of “sendmail.ini” is present in sendmail file and “php.ini” is present in php file in the xampp folder.
    How to send Mail using PHP mail() : • How To Send Email Usin...

Komentáře • 31

  • @countplokoon
    @countplokoon Před rokem +1

    helped me with my assignment. Thank you brother!

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

    Amazing content! Helped me to integrate gmail into my contact page. It's the simple things that often go unexplained and I thank this creator for sharing this with us. :)

  • @gameblog1725
    @gameblog1725 Před 29 dny

    You're legend!

  • @ayanulhaque5949
    @ayanulhaque5949 Před rokem

    thank youuuuuuuu soo much

  • @stevenalex9439
    @stevenalex9439 Před 10 měsíci +2

    Thank you. Note: I had to replace this line
    sendmail_path = "d:\xampp\sendmail\sendmail.exe -t"
    because previous was not working, the format is different, and in the next video I had to add the FROM on the structure form to be able to create the email

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

    merci beaucoup j'ai resolu le probleme🥰

  • @nurhumairahanisah9933

    is it the same if i use wamp server

  • @mostafatarekadam8861
    @mostafatarekadam8861 Před 8 měsíci +1

    Thanks mate you helped me much, it worked, but I had to disable secure login to allow a log in with just a password, I didn't find an option for app passwords

  • @user-hm6xl9ym7n
    @user-hm6xl9ym7n Před rokem

    with windows 64bit how i can modify the code ?

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

    I don't have the sendmail directory

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

    what do u mean by gmail id

  • @user-wk5cz9ru2e
    @user-wk5cz9ru2e Před 2 měsíci

    not found sendemail folder !!!

  • @jiajiecheong9024
    @jiajiecheong9024 Před rokem +2

    dont have app password in google account, what should i do?

    • @codewithyousaf
      @codewithyousaf  Před rokem

      Watch this 1 min video:
      czcams.com/video/Gu4ifdBkrNM/video.html

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

    im using linux what should I change in php.ini?

  • @ayimsolomon
    @ayimsolomon Před 2 dny

    How can i reach on to you pls

  • @miyagenco.ltd.3100
    @miyagenco.ltd.3100 Před rokem +3

    I didn't see App password in my gmail account

    • @codewithyousaf
      @codewithyousaf  Před rokem +1

      go to security tab then turn on two step authentication after you will see it under two step auth

    • @justinjames__423
      @justinjames__423 Před 8 měsíci

      Yours may be different from the video uploader, me too, that's after you click into 2 step authentication and roll to the bottom, you can

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

      type (app) on the search box it will apear

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

    i get an error that says: 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\cookies\send.php on line 33
    how do i fix this :(

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

      @nithin6654 i think so! i had to restart xampp. open xampp control panel, click "stop" on apache and mysql, click "start" after successfully stopped and thats all.

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

      @@nithin6654i think so! i had to open xampp control panel click "stop" on apache and mysql, then click "start" after both have stopped completely

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

      ​@@nithin6654 did you get the same error too? And were you able to solve it?

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

      @@Alpha_Precious no

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

      @@nithin6654 damn! I need this feature for my project. Did you find another method that was successful elsewhere?