Send email from Localhost and PHP

แชร์
ฝัง

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

  • @denciosantos5316
    @denciosantos5316 3 ปีที่แล้ว +1

    Very straight foward, in our dialect 'walang paligoy ligoy pa ayos sir' this great it works for me

  • @gabrielmoktan6752
    @gabrielmoktan6752 2 ปีที่แล้ว +1

    Thank you so much PHP basic, this really helped! I got to learn so much while solving this issue.
    Thank you sir!

  • @yuvarajr1496
    @yuvarajr1496 4 ปีที่แล้ว

    Works fine. It was very helpful for my UG project. Thanks a lot ;)

  • @SmartHDesigner
    @SmartHDesigner 3 ปีที่แล้ว

    Thanks man! You helped a lot :D

  • @waleedalnajadah7739
    @waleedalnajadah7739 3 ปีที่แล้ว

    Thank you for this video. I tried with gmail for 3 to 4 days, I followed the exact procedure mentioned in TH-cam videos but it didn't work. When I saw your video using yahoo smtp, I followed your procedure, finally I got it to work. Thank you so much.

  • @manuelmilla4399
    @manuelmilla4399 4 ปีที่แล้ว +5

    Yeeessss, it worked!!! Thank you!! I was spending so much time looking for a method to send an email using PHP. I found it in your video lesson, Thank you

    • @raminalibeyli9243
      @raminalibeyli9243 4 ปีที่แล้ว

      Exactly. Thank you, sir!

    • @shivammal1294
      @shivammal1294 4 ปีที่แล้ว

      Can u tell me how u did that i b feeling problem to get it done

    • @manuelmilla4399
      @manuelmilla4399 4 ปีที่แล้ว

      @@shivammal1294 Hello, I use yahoo email account. May be that is the reason you can not get it done

  • @user-bq4xc2yy3m
    @user-bq4xc2yy3m 3 ปีที่แล้ว

    Thanks so much. This helped me so fast! God bless!!

  • @rafatulalam8677
    @rafatulalam8677 5 ปีที่แล้ว

    Thanks a tonne
    worked like a charm !

  • @AmmarTaicho
    @AmmarTaicho 5 ปีที่แล้ว +9

    Dude, you are a very great instructor. You have the voice and the simplicity in explaining, do courses in Udemy or here in TH-cam and keep up the good work 👍👍

    • @AmmarTaicho
      @AmmarTaicho 3 ปีที่แล้ว +2

      @Loren Cadavid what a cheap marketing technique 😅

  • @manirp6907
    @manirp6907 3 ปีที่แล้ว

    Thank you so much brother 🙏❤💙

  • @RameenFallschirmjager
    @RameenFallschirmjager 4 ปีที่แล้ว +2

    Hollywood quality tutorial! Thanks bro!

  • @mlandvonkambule6270
    @mlandvonkambule6270 3 ปีที่แล้ว

    Even in 2021 still works 100% Thanks a lot bro

  • @anuradharaheja8658
    @anuradharaheja8658 3 ปีที่แล้ว +1

    Thanx a lot, very well explained. It Worked!!!!!

  • @XempegeX
    @XempegeX 4 ปีที่แล้ว +5

    Thank you so much, your voice is soothing and the explanation is like gods gift to us that need this haha! Cheers!!!!!

    • @tatemartin5120
      @tatemartin5120 2 ปีที่แล้ว

      i dont mean to be offtopic but does anyone know a method to get back into an Instagram account??
      I was dumb forgot my login password. I would love any tricks you can give me!

    • @bradeneliseo5497
      @bradeneliseo5497 2 ปีที่แล้ว

      @Tate Martin Instablaster =)

    • @tatemartin5120
      @tatemartin5120 2 ปีที่แล้ว

      @Braden Eliseo Thanks so much for your reply. I got to the site through google and im waiting for the hacking stuff now.
      Seems to take quite some time so I will get back to you later with my results.

    • @tatemartin5120
      @tatemartin5120 2 ปีที่แล้ว

      @Braden Eliseo It did the trick and I finally got access to my account again. I'm so happy:D
      Thanks so much, you saved my account!

    • @bradeneliseo5497
      @bradeneliseo5497 2 ปีที่แล้ว

      @Tate Martin No problem xD

  • @bin9064
    @bin9064 3 ปีที่แล้ว

    Hi! Its August 15, 2021 now and this is still working both in GMAIL and OUTLOOK EMAIL!!!
    THANK YOU SO MUCH!!!

  • @EricEOL
    @EricEOL 4 ปีที่แล้ว

    Thanks. You helped me a lot.

  • @hyna0728
    @hyna0728 2 ปีที่แล้ว

    Didn't receive emails using the same configuration on my Windows. I had to edit the sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" and worked perfectly. Thanks!

  • @Anonymous-fo2rv
    @Anonymous-fo2rv 2 ปีที่แล้ว

    u r a saviour ............thnx man

  • @jacknguyen4014
    @jacknguyen4014 5 ปีที่แล้ว

    It works! Thanks so much :)

  • @JustUser204
    @JustUser204 4 ปีที่แล้ว +4

    When six minunutes video saves couple hours of googling

  • @lakshmikanthraju105
    @lakshmikanthraju105 2 ปีที่แล้ว

    Thanks a lot, man!

  • @raswanthikab9410
    @raswanthikab9410 4 ปีที่แล้ว

    Life saver!

  • @animatedbackgroundsbyprerana
    @animatedbackgroundsbyprerana 3 ปีที่แล้ว

    Hey Thanx it worked for gmail too :)

  • @esofialo23
    @esofialo23 5 ปีที่แล้ว

    Thank you it worked perfectly :D

  • @thomassteindl9481
    @thomassteindl9481 4 ปีที่แล้ว

    Thank you!

  • @md.ashrafulislambhuiyan2293
    @md.ashrafulislambhuiyan2293 5 ปีที่แล้ว

    Great work with short time

  • @sahusahu6361
    @sahusahu6361 3 ปีที่แล้ว

    Tquuu you solved my problem.

  • @nieshas6359
    @nieshas6359 3 ปีที่แล้ว

    Perfect!

  • @cindytekeste106
    @cindytekeste106 3 ปีที่แล้ว

    Hi I did this and it was giving me a socket error so I changed the compatibility and made sendmail.exe ask for admin permission which got rid of the error but now it just loads forever. The file works well on a friend's laptop but not mine.. any idea what the problem could be?

  • @user-zi1pr8vk3z
    @user-zi1pr8vk3z 3 ปีที่แล้ว

    Thanks . It's finally work.

  • @StumpyDumpy
    @StumpyDumpy 3 ปีที่แล้ว

    THANK YOU!!

  • @abubakrtufail6160
    @abubakrtufail6160 5 ปีที่แล้ว

    it works.Thank you a lot

  • @yassirnasri4900
    @yassirnasri4900 2 ปีที่แล้ว

    keep up the good work

  • @alexanderantropov2106
    @alexanderantropov2106 4 ปีที่แล้ว

    Thanks!

  • @bilalhussain7680
    @bilalhussain7680 4 ปีที่แล้ว

    thank You such a greate tuts for me

  • @KARTIKKUMARSAW
    @KARTIKKUMARSAW 3 ปีที่แล้ว

    thank you bro this code works for me good.

  • @jigneshnayak8
    @jigneshnayak8 5 ปีที่แล้ว

    It worked
    Thank You

  • @zansiviradiya5387
    @zansiviradiya5387 2 ปีที่แล้ว

    Email has been send successfully. But not show in my inbox. I was changed all of the setting

  • @jmri_16
    @jmri_16 3 ปีที่แล้ว

    It is still can send an email if I uploaded my work online?

  • @QadeerAbbas49
    @QadeerAbbas49 4 ปีที่แล้ว

    life saving.....

  • @faithfulservant1380
    @faithfulservant1380 2 ปีที่แล้ว

    Hey. Nowadays for yahoo, we are required to use a one-time password. I entered that and it did not work. Also I am initiating this through a php file so for my sendmail path i just linked it directly to my php file. I was unsure what the .exe file so i was wondering if that mayhave been a cause. Thanks again any information helps

  • @toma1610
    @toma1610 2 ปีที่แล้ว +1

    Should I do different settings in the PHP.INI file if I use Mac with MAMP?

    • @phpBasics
      @phpBasics  2 ปีที่แล้ว

      Hi there. Unfortunately, I don't know enough about MAMP to say one way or another.

  • @davecamasura4459
    @davecamasura4459 5 ปีที่แล้ว +6

    This is from the file error.txt
    19/03/02 08:05:41 : (#AUTH005) Too many bad auth attempts.
    what is this?
    I am currently using xampp 7.3.1 version

  • @agresiv0
    @agresiv0 5 ปีที่แล้ว +1

    Great video Sean! I was wondering, what do you have to modify when uploading your page to a web host? thanks!

    • @phpBasics
      @phpBasics  5 ปีที่แล้ว +3

      Hey Ricardo. Your webhost should already be setup to email directly from the host itself. You shouldn't need to modify anything other than the sending address.

    • @lakshminarayanad7180
      @lakshminarayanad7180 4 ปีที่แล้ว

      @@phpBasics thanks for kind response......

  • @musicvista5345
    @musicvista5345 5 ปีที่แล้ว

    Keep it up

  • @ayushdubey8745
    @ayushdubey8745 3 ปีที่แล้ว

    I followed the same steps but it didn't work for me. Can anybody help me out?

  • @nessamuna9974
    @nessamuna9974 2 ปีที่แล้ว

    I would love to know how this works on gmail. How can I configure this?

  • @mibrahim4245
    @mibrahim4245 2 ปีที่แล้ว

    Hi, this is awesome ..
    but the link in the description is not working ...

  • @ritabratagoswami7724
    @ritabratagoswami7724 2 ปีที่แล้ว

    Not working ! getting multiple error! like-> Socket Error # 10060Connection timed out and Connection Closed Gracefully. (even after using port 465 and enable the less secure apps in gmail) I have tried this multiple time but nothing happening!

  • @kapilwaghela_07
    @kapilwaghela_07 4 ปีที่แล้ว

    nice one sir but i need to give the password in auth_password then it worked thank you sir

  • @ayeshashaikh5039
    @ayeshashaikh5039 4 ปีที่แล้ว +1

    sir there is no error folder in my xampp

  • @akshatsharma2511
    @akshatsharma2511 4 ปีที่แล้ว +3

    Socket Error # 11001Host not found. please tell me how to resolve this

    • @luciano5172
      @luciano5172 2 ปีที่แล้ว

      @@Official_Baba_yaga what does that mean? How do you create a mail server?

  • @KajalPatel-en9om
    @KajalPatel-en9om 3 ปีที่แล้ว

    it is workd thank you so much

  • @TheYaCOD
    @TheYaCOD 3 ปีที่แล้ว

    Love u man

  • @arianeawacomboy
    @arianeawacomboy 3 ปีที่แล้ว

    how can I do this for my live hosting server?

  • @imperialorthopaedics4768
    @imperialorthopaedics4768 ปีที่แล้ว

    22/09/01 20:14:51 : Socket Error # 10060Connection timed out. this statement is printing in error.log, Could you lemme know how to resolve it ? please!

  • @zonairhaidershah2182
    @zonairhaidershah2182 3 ปีที่แล้ว +1

    Socket Error # 11001Host not found.???????????

    • @luciano5172
      @luciano5172 2 ปีที่แล้ว

      got the same thing, did you fix it?

  • @x.von5
    @x.von5 2 ปีที่แล้ว

    I used gmail smtp, it did not work for me. Can you help me?

  • @souvikdutta3567
    @souvikdutta3567 4 ปีที่แล้ว

    I followed all the steps but google doesn't allow me to send the mail how to fix it

  • @danylayton7582
    @danylayton7582 2 ปีที่แล้ว

    I want to buy this tools with paypal, can I pay for it with paypal?

  • @clarencevizcarra8115
    @clarencevizcarra8115 2 ปีที่แล้ว

    how to do this on live?

  • @TC-kh4er
    @TC-kh4er 4 ปีที่แล้ว

    Hi! How could I put inside the $message= ' '; ?

  • @vivianakpoke5023
    @vivianakpoke5023 2 ปีที่แล้ว

    Great video, i followed the stepped and it worked on my local computer. buthow do i configure it on cpanel as i am hosting my project there?

    • @phpBasics
      @phpBasics  2 ปีที่แล้ว

      Your host should provide native email support. There should be no need to make any apache changes.

  • @ramadhanekaprawiralubis6925
    @ramadhanekaprawiralubis6925 2 ปีที่แล้ว

    the email function return true but the email not sent, can you help me

  • @adnanmirza2709
    @adnanmirza2709 4 ปีที่แล้ว +2

    sir i am follow your method but i cant get any mail why?

  • @chiperchiper1782
    @chiperchiper1782 4 ปีที่แล้ว +1

    please help i have this error
    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()

    • @Gnshkhr
      @Gnshkhr 4 ปีที่แล้ว

      I have same error if you gotta that solution let me know

    • @nkh6162
      @nkh6162 4 ปีที่แล้ว +1

      Hi, i think it's made by bad configured smtp's settings. you need to set" smtp_server=smtp.gmail.com" (->if you want use gmail services) and "smtp_port=465" and" smtp_ssl=ssl" in "sendmail.ini " and then you need to comment these commands (smtp_port=25 , SMTP=localhost) as he mentioned in video.
      i think, may be you forgot to comment smtp_port in php.ini.
      good luck.

  • @SoftUche
    @SoftUche 2 ปีที่แล้ว +1

    thanks alot for the videos .please i got an error in my error-log file "22/07/10 02:34:41 : Connect timed out." please can you help?? pleaseeeeee

  • @siddharthnalwaya4848
    @siddharthnalwaya4848 3 ปีที่แล้ว

    i tried it with gmail but its giving me error

  • @nessamuna9974
    @nessamuna9974 2 ปีที่แล้ว

    How can I configure it for windows

  • @romeissa5232
    @romeissa5232 2 ปีที่แล้ว

    thank you so much it worked ?

  • @jeromeberinguel436
    @jeromeberinguel436 5 ปีที่แล้ว +2

    it doesn't work for me. I'm using gmail account.

  • @prernnajain1532
    @prernnajain1532 3 ปีที่แล้ว

    Please help me solving this error
    Mail(): failed to connect to mail server at "localhost". Verify your SMTP and smtp_port

    • @siddharthabarman7328
      @siddharthabarman7328 2 ปีที่แล้ว

      After saving php.ini ,you have to restart your apache server.

  • @iqbalibrahim4713
    @iqbalibrahim4713 5 ปีที่แล้ว

    so what's the path for windows for send mail, you said that it is fake email, but still I can't find the path

    • @phpBasics
      @phpBasics  5 ปีที่แล้ว

      If you're using the default XAMPP configuration, it's C:\xampp\sendmail

    • @iqbalibrahim4713
      @iqbalibrahim4713 5 ปีที่แล้ว

      @@phpBasics thank you

  • @neelkanthpatel873
    @neelkanthpatel873 2 ปีที่แล้ว +1

    Socket Error # 11001Host not found.
    I'm getting this error can anybody help.

    • @luciano5172
      @luciano5172 2 ปีที่แล้ว

      same, did you fix it?

    • @ritabratagoswami7724
      @ritabratagoswami7724 2 ปีที่แล้ว

      I'm getting Socket Error # 10060Connection timed out even after all the steps follow including gmail allow low secure app! don't know what to do.

  • @vrushabhpatil2867
    @vrushabhpatil2867 3 ปีที่แล้ว

    man didn't work for google i had done everything that u say

  • @harshitsolanki1754
    @harshitsolanki1754 4 ปีที่แล้ว

    Not working, mail sent, but not recieved to me , what should I do now?

    • @phpBasics
      @phpBasics  4 ปีที่แล้ว

      Make sure you enable "less secure Email" on your yahoo or gmail account.

    • @harshitsolanki1754
      @harshitsolanki1754 4 ปีที่แล้ว

      @@phpBasics yes, it is ON

  • @veterinarymanagement3795
    @veterinarymanagement3795 4 ปีที่แล้ว +1

    Message is missing sender's address

    • @math-gp9lm
      @math-gp9lm 4 ปีที่แล้ว

      me too ! please help me if you handled this

  • @math-gp9lm
    @math-gp9lm 4 ปีที่แล้ว

    Please it is not working I am finding error "Message is missing sender's address" please help me

    • @phpBasics
      @phpBasics  4 ปีที่แล้ว

      skype: CoolEditz

  • @telhernandez2347
    @telhernandez2347 2 ปีที่แล้ว

    Hi! Can you send me the password of the sendmail file? Thank you in advance.

  • @ronalddumaguing1896
    @ronalddumaguing1896 ปีที่แล้ว

    How to attach some documents in sendmail?

    • @phpBasics
      @phpBasics  ปีที่แล้ว

      Attachments with the native sendmail function is quite difficult. Most of us utilize PHPMailer for that.

  • @yexiu6653
    @yexiu6653 5 ปีที่แล้ว

    Source Code pls

  • @herbertbasilla3520
    @herbertbasilla3520 2 ปีที่แล้ว

    I used gmail account

  • @SanthoshNayakYt
    @SanthoshNayakYt 4 ปีที่แล้ว

    I'm not receiving messages in other end

    • @jefinagilbert5977
      @jefinagilbert5977 3 ปีที่แล้ว

      same

    • @SanthoshNayakYt
      @SanthoshNayakYt 3 ปีที่แล้ว

      @@jefinagilbert5977 I have did this u want the cofe bro?

    • @jefinagilbert5977
      @jefinagilbert5977 3 ปีที่แล้ว

      @@SanthoshNayakYt no bro... i too found the solution... thanks for it

  • @niclausslumoring
    @niclausslumoring 4 ปีที่แล้ว

    nothing happens

  • @AmarJukuntla
    @AmarJukuntla 3 ปีที่แล้ว

    AM unable to send mail . Showing (#AUTH005) Too many bad auth attempts.

    • @phpBasics
      @phpBasics  3 ปีที่แล้ว

      Hello. Have you enabled less secure email on your account?

    • @AmarJukuntla
      @AmarJukuntla 3 ปีที่แล้ว

      @@phpBasics am not seeing that option in my yahoo account. But working in gmail

  • @lucianrusu7033
    @lucianrusu7033 4 ปีที่แล้ว +1

    waste of time...i hope some day, someone will upload video with instruction that actually work..Error connecting with SSL.Error connecting with SSL.error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
    (#AUTH005) Too many bad auth attempts.

  • @rein2407
    @rein2407 3 ปีที่แล้ว

    No errors but i didn'rt receive an email

    • @phpBasics
      @phpBasics  3 ปีที่แล้ว +1

      Double check your work and make sure your email account is configured to allow less-secure protocols. There are some comments here that provide additional information regarding different email providers. This is still working.

    • @rein2407
      @rein2407 3 ปีที่แล้ว

      @@phpBasics u think the 2 way authenticator of my gmail account blocking the send of the email?

    • @rein2407
      @rein2407 3 ปีที่แล้ว

      @@phpBasics on the debug mode it says "application specific password required"

    • @rein2407
      @rein2407 3 ปีที่แล้ว

      @@phpBasics i did it man. Thanks. The 2 way login aunthenticator really the culprit for blocking the smtp. Thanks btw.

    • @phpBasics
      @phpBasics  3 ปีที่แล้ว +1

      @@rein2407 Glad you got it figured out!

  • @kevgits
    @kevgits 5 ปีที่แล้ว

    Unfortunately, this doesn't seem to work with Gmail.

    • @esofialo23
      @esofialo23 5 ปีที่แล้ว

      I used gmail following this steps here you can give it a try, it worked fine for me stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost

    • @kevgits
      @kevgits 5 ปีที่แล้ว

      @@esofialo23 Thanks for trying to help. Unfortunately, it still doesn't work even after following the procedure above. I get the following error in the logs:
      19/03/11 11:46:03 : Error connecting with SSL.Error connecting with SSL.error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

    • @artemis1306
      @artemis1306 4 ปีที่แล้ว

      @@lavarthan3298 how ?

    • @artemis1306
      @artemis1306 4 ปีที่แล้ว

      @@lavarthan3298 yea thanks finally managed it by turning on its less secure access. 😁 It took time for me to find it on google. Haha! 🤣

  • @AlexJGames
    @AlexJGames 4 ปีที่แล้ว

    hey friend can you provide the source codes?i give you a big subscribe for that i promise

    • @xXEmilXx100
      @xXEmilXx100 3 ปีที่แล้ว

      It's just a few changes in ini files that you must do according to your mail server and account settings. There's no need to provide source files (unless you ask for php.ini or something but it comes with apache server).

  • @alucardhellsing4366
    @alucardhellsing4366 4 ปีที่แล้ว

    apparently because of the tow-step verification i had an error using my gmail account and i followed the link that lead me to google information page
    telling that you have to set up a password to use with applications so if you have this problem follow the link :
    support.google.com/mail/?p=InvalidSecondFactor
    ------------------------------------------------------------------------------------------------------------------------------------------------
    للأشخاص الي يستخدمون جيميل وظهر لهم رسالة خطا في مجلد error
    غالباً بسبب عملية التحقق بخطوتين لذلك لازم تروح لإعدادات الأمان في حسابك في قوقل وتفعل كلمة المرور الخاصة بالتطبيقات
    هذا الرابط وفيه المعلومات من قوقل اتبع الخطوات الموجودة فيه :
    support.google.com/mail/?p=InvalidSecondFactor

  • @Helianthus_Promotions
    @Helianthus_Promotions 2 ปีที่แล้ว

    (#AUTH005) Too many bad auth attempts.

  • @vrgs8896
    @vrgs8896 3 ปีที่แล้ว

    How much time did it take for your email to send? Because I followed the steps you showed and tried to send an email and 10 minutes later I still didn't receive it.
    That's what I wrote in my test file, and it returned 'Email sent successfully', but it's there's nothing in my inbox.
    $sendMail = mail('myemail@yahoo.com','Test Subject','Hello there!','From: myemail@yahoo.com');
    if($sendMail)
    {
    echo "Email sent successfully";
    }
    else
    {
    echo "Mail failed";
    }
    And also, I downloaded the .zip from the link in the description and it doesn't have an error.log file, so I can't tell what might be wrong. Do you have any idea what I could try?

  • @TC-kh4er
    @TC-kh4er 4 ปีที่แล้ว

    Hi! How could I put inside the $message= ' '; ?

  • @vaishnavigarad5175
    @vaishnavigarad5175 4 ปีที่แล้ว

    Socket Error # 11001Host not found how do I solve this error?

    • @phpBasics
      @phpBasics  4 ปีที่แล้ว +1

      You are not configuring something correctly. Socket Error 11001 - Host not found (authoritative answer) This means that the ISP POP3 or SMTP server which you have told VPOP3 to connect to does not currently exist.

    • @vaishnavigarad5175
      @vaishnavigarad5175 4 ปีที่แล้ว

      @@phpBasics okay. So what could I do to resolve this issue?

  • @TC-kh4er
    @TC-kh4er 4 ปีที่แล้ว

    Hi! How could I put inside the $message= ' '; ?

    • @phpBasics
      @phpBasics  4 ปีที่แล้ว +1

      If you wrap a string in double quotes, you can use variables within the string. If you use single quotes, you have to concatenate them.