Send SMS Text Messages to Mobile Phone PHP Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 เม.ย. 2016
  • Learn how to use PHP to send SMS text messages to mobile phones programmatically and automatically. You can use this to send text messages to your website members, clients or customers from a web based platform.

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

  • @vrshop5841
    @vrshop5841 8 ปีที่แล้ว +34

    finally someone puts this out there. thanks Adam

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

    You wont believe I learnt coding from Adam .... way back while building a social media website with flash.. thank you Adam

  • @LaurenBridges37
    @LaurenBridges37 8 ปีที่แล้ว +44

    I woke up from a dead sleep, saw a notification for this tutorial, and am now wide awake. Thank you :)

    • @RenuKadolkarrandom-inklings
      @RenuKadolkarrandom-inklings 7 ปีที่แล้ว +2

      Lauren Bridges Same! Literally same! :P

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

      2 years later, are you still awake?

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

      wow that was 4 years latter

  • @nickfleming6775
    @nickfleming6775 7 ปีที่แล้ว

    THANK YOU!!!!! for not telling us to buy an sms gateway like every other video on youtube about this topic

  • @melvinhilljr
    @melvinhilljr 8 ปีที่แล้ว +5

    Excellent tutorial! Finally, a simple lesson that actually works without necessarily paying subscription fees. Adam, you are the man!!!!!

  • @paulfarley9265
    @paulfarley9265 8 ปีที่แล้ว

    Thanks Adam! Someone sort of asked this already, but is there a way to allow the user to respond to this? More than just "Stop". I mean in a way to allow conversations.

  • @bogerenasser3932
    @bogerenasser3932 8 ปีที่แล้ว +2

    OH man you're a saviorur been biting my nails waiting for this....Can u make an entire mini series about this SMS topic??
    Also man have u ever considered making phonegap / apache cordova tutorials. This tech is growing at a fast rate......
    THANKS MAN FOR YOUR CONTRIBUTIONS.

  • @JasonThomas-bv2yw
    @JasonThomas-bv2yw 8 ปีที่แล้ว +1

    What screen recording software do you use for these videos? Camtasia?

  • @NzeluHub
    @NzeluHub 6 ปีที่แล้ว

    I have been looking for this for a while! thanks a lot

  • @japjap4902
    @japjap4902 8 ปีที่แล้ว

    Good day! Is the recipient needs to pay every messages they will receive ?

  • @jamesbarratt593
    @jamesbarratt593 6 ปีที่แล้ว +2

    Dude I just subscribed. Thought I had before only guess not as it said subscribe. Glad I'd stumbled across this video. Watched one of yours in the past and I love the way you explain everything. So clear and precise. Take time to speak and explain in layman' terms how everything works. 10/10

    • @animerepository123
      @animerepository123 6 ปีที่แล้ว

      hey james did you got it work ?

    • @jamesbarratt593
      @jamesbarratt593 6 ปีที่แล้ว

      Not there yet, as doing other coding. I will though. I did however ring THREE mobile and try asking for their email to text system addresss and the woman in indian/English mostly indian, said you want send me an email. Damn it was like speaking to a brick wall for getting useable results from her. In the end I gave up. She just couldn’t understand. So then I googled hlr for a firm to detect the mobile numbers carrier, but none of them contacted me. I do know it costs either 10 pence OR 1 per text though which would add up quickly. Hope it was the 1pence but still every hundred texts is a pound and so on. Come the bill I’m sure it won’t be cheap.

    • @animerepository123
      @animerepository123 6 ปีที่แล้ว

      oh that's pretty cool :D
      by the way i just want to ask the "$from" variable do you use you email ? i use my gmail in there and i also have a PHP file in a live host server. but i can't receive any sms.

  • @bobantrajkovic4193
    @bobantrajkovic4193 8 ปีที่แล้ว +2

    Hello Adam. How to send HTML decorated email using php?
    I have tried with many tutorials, but always send only text message.
    Can you help me please?

  • @hackerprime9722
    @hackerprime9722 3 ปีที่แล้ว +18

    We need a 2021 version of this video.

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

      Yesss 🥺

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

      Somebody teach us🥺

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

      Yes

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

      Do you have real usa number? If yes let try it out

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

    MR Adam, i suppose you are arab or lebanese specifically.
    I just need to see what to put in "TO: if the receiver is in Lebanon" MTCTOUCH Carrier or ALFA Carrier

  • @General_Aladeen
    @General_Aladeen 8 ปีที่แล้ว +1

    Can you teach us how to make a swipe or touch event in JavaScript? Thank you.

  • @winnybatard.3374
    @winnybatard.3374 8 ปีที่แล้ว

    Hi Adam,
    I was wondering if you could add a video for us on how to capture user's webcam and stream the image you captured (thml, javascript). there are some videos out there for some reasons, I am not comfortable with them.
    thank you in advance.
    Winnie,

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

    When you & up on a dark YT alley 02AM and njoy the robotic voice speaking unknown language. The bliss is real! Legaliz it!✌

  • @marcadrianfarorepalbor5342
    @marcadrianfarorepalbor5342 6 ปีที่แล้ว

    Hi sir Adam good tutorial i was just wondering if you have used an sms gateway provider and how do you receive sms from cellphone no. to a data base
    Thanks

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

    thanks but do you need to register to the domain?

  • @michaellike9542
    @michaellike9542 7 ปีที่แล้ว +2

    Really like your Tutorials so easy to follow..........Please make a tutorial on how to generate PDF from PHP

  • @youpattube1
    @youpattube1 8 ปีที่แล้ว

    I am always at the bottom of the class, so I don't mind asking dumb questions. As I understand this, I would send the .php file to be among the files used by my domain name, on the server. Is that right ?
    And if I wanted the message to go to Mary, I would rename the file from example to 'Send to Mary.php', then when I type in the domain address/Send to Mary.php in the address bar and hit go, it will execute that .php file and send a message to Mary. Is that right ?
    And if I wanted to send it out to multiple people, I would just have more than one "to" line (each with a different phone #). Is that right ?

  • @podster12
    @podster12 7 ปีที่แล้ว

    So that means, I have to have my line/number active so it can send sms?

  • @ChimobiHD
    @ChimobiHD 8 ปีที่แล้ว

    Any chance you could do an example of an upvote downvote system for posts/status updates on a website like Reddit?

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

    bro I am looking for a tutorial that help me to send sms after appointment submit.
    I wanna build a website for doctors appointment, in appointment page anyone can select department and doctors name that load from mysql database, and they will provide there Name and phone and name in the appointment page. when someone submit the appointment he/she will get a sms in his mobile (phone number that he provide in the apointment page). please help me.

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

    How can I program at I call you schedule an SMS to my clients?

  • @MOHAMMADHUSSAINMALIK
    @MOHAMMADHUSSAINMALIK 6 ปีที่แล้ว

    Please help. Do we need to signup on carrier or not. Because i have tried this but it is not working . And also tell me a free carrier

  • @wkowalski
    @wkowalski 7 ปีที่แล้ว

    How would I implement this in a WordPress site? I've tried creating a PHP template with this code but it doesn't work. I also tried setting it up as a function.

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

    Can i make a short call validation number place of this SMS validation ?

  • @henrydeveloper4631
    @henrydeveloper4631 7 ปีที่แล้ว

    hi, do you have a tutorial on sending bulk emails with php mailer?

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

    I'm trying this on my own web server running Nginx, and when I type the URL to the .php file, my browser just starts downloading it. I'm using Brave on Windows 10 and trying to send the text to a Samsung Galaxy S9+. I'm thinking I've misconfigured PHP on my server. So I tried again by making a symbolic link to sites available vs. sites enabled, and when I type the URL, I get the default Apache landing page. I am beyond confused at this point, and the only thing I can think of is the possibility that Apache is the default webserver that comes packaged with the base PHP installation. And I can't find my PHP initialization file. What's the most likely problem here?

  • @levikisaka2230
    @levikisaka2230 6 ปีที่แล้ว

    Can you do a video on changing the status of a taxi if it is assigned or unassigned please

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

    Hey Adam - Does it cost anything to send SMS messages using PHP? Or can you send 1000's of texts without having to pay per text?

  • @kounelios13
    @kounelios13 7 ปีที่แล้ว

    How ca i get the domain names for greek carriers
    ?

  • @calebcadainoo
    @calebcadainoo 7 ปีที่แล้ว

    Its not working here in Ghana. But is there anyway to get it to work @Adam ?

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

    I know this was published more than four years ago. But still I tried the code and it didn't work me. Either the domains have changed or there is something in my php.ini file that needs tweaking.
    Just sharing.

  • @ramchandramishra1469
    @ramchandramishra1469 7 ปีที่แล้ว

    hello sir , will u tell me how to setup sendmail.ini and php.ini to use mail function.

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

    Is there any way i can use this for Philippines? I don't know about the SMS Gateway

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

    Is there a way to get an email as well as the form because every time I try with it sending to both pathways it only sends it to the 2nd option

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

      Email as well as the text*

  • @akashbhardwaj6769
    @akashbhardwaj6769 6 ปีที่แล้ว

    In which text editor this app is made??

  • @aseeawan2946
    @aseeawan2946 7 ปีที่แล้ว

    i couldn't find your JSON series. plz guide me sir

  • @kerrooo1430
    @kerrooo1430 8 ปีที่แล้ว

    alot of people put fake adres or number. How we gonna detect that? ping the site that they write first or try to send message to email first or how?

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

    i really need to use this for my project . thanks @ADAM

  • @JohnSmith-lb9nx
    @JohnSmith-lb9nx 6 ปีที่แล้ว

    how can you make this work in a local host? what can we change in the php.ini file to enable it? can it work if we use hmailserver and squirrelmail??

  • @papes7442
    @papes7442 6 ปีที่แล้ว

    Can you send bulk sms with this method ? Like sending 1000 sms with a delay of like 5 seconds per text

  • @PrincessLibra16
    @PrincessLibra16 7 ปีที่แล้ว

    Sad face here :( The first part is not working for me. I dont know if its my webhost or if I'm missing something else.

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

    Do you have to have a phone number for this to work?

  • @kumaraswamyb.r4085
    @kumaraswamyb.r4085 8 ปีที่แล้ว

    thank you khoury...

  • @HappySeller
    @HappySeller 8 ปีที่แล้ว +1

    Using this script you can send SMS using free web hosting? Or what?

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

    Thank you so much for this information, it is really helpful.
    It works with different US sms gateway domains, tested on a web server (not localhost).
    Greetings

  • @RichardHema
    @RichardHema 6 ปีที่แล้ว

    Thank you Adam

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

    can i write this code in wordpress. if yes then please..let me know in which file can i write this code

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

    Sir sms me logo lagne ke laye kon sa cod lagate h
    Jise ke sms bank sms me aata h
    or bhi aap h jiske sms me logo aata h

  • @araghafur1593
    @araghafur1593 6 ปีที่แล้ว

    how to do in in my localhost??? please answer i don't have host .........

  • @CrazyForModelKit
    @CrazyForModelKit 8 ปีที่แล้ว

    THANK YOU SIR!

  • @MireyElmofti
    @MireyElmofti 8 ปีที่แล้ว +2

    Hi Mr Adam, following your tutorials like allways and i can't find the words to describe how usefull they are.. Can you make us a tutorial on how to convert bootstrap from LTR / RTL maybe at least for the nav bar and the texts ?? I know it's crazy to ask somebody that may not speak any of the languages that go from RTL to make such a tutorial but i know how expert you are and i am sure you can explain the basics at least.. Thanks alot .. Be safe for allways..

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

    what would i put in database ?

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

    When he starts talking about the domain names for the companies, do we use our own or who's and where can i find a list?

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

      You have to add the domain name of the carrier of the person you are sending the text to. So, unfortunately, if you don't know that then you can't send a message!

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

    what should I write in "from" if i am running it from localhost

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

      Same doubt

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

      @@mahendharp9759 yeah same too.

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

      You have to install a 'mail server' to run with localhost. I assume your using WAMP, unless xampp uses localhost also :)

  • @mqdesigns3319
    @mqdesigns3319 7 ปีที่แล้ว

    But How to know the SMS Gateway Domain of Pakistan, India or Another state??? except US!!

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

    How can i get sms gateway domain for uk country

  • @manishadwani386
    @manishadwani386 8 ปีที่แล้ว +6

    please make a tutorial on how to make 5 start rating in javascript

  • @califatysaid1324
    @califatysaid1324 8 ปีที่แล้ว

    how have you configure you ssend mail

  • @timonagy6070
    @timonagy6070 7 ปีที่แล้ว

    whats program doing on ?

  • @alamgirkhan7285
    @alamgirkhan7285 8 ปีที่แล้ว

    Nice Job Thanks

  • @hitlarrajbhandari
    @hitlarrajbhandari 8 ปีที่แล้ว

    Nice one adam..

  • @shahidrasheed1296
    @shahidrasheed1296 8 ปีที่แล้ว

    keep it up bro nice one

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

    Can you make a tut on how to make a video chat web app for free like no 3rd parties or api's without webrt or io or node js or npm or any other random crap?

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

    Can I make a connection with a contactform, so I get an alert when someone emails me?

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

      Yes, I do it all the time. I have my sites set up to alert me to all sorts of events on websites.

  • @hashaamzahid3319
    @hashaamzahid3319 7 ปีที่แล้ว

    what is " From "" value .

  • @hmdmhyd
    @hmdmhyd 6 ปีที่แล้ว

    does it work in Malaysia?

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

    Kya sir ye coding mere ko de sakte he kya

  • @ernestmurimi950
    @ernestmurimi950 6 ปีที่แล้ว

    do you have kenyan one?

  • @AllinOneArchive
    @AllinOneArchive 8 ปีที่แล้ว +3

    nice and easy ... but how mobile company going to charge me to sending messages form the scripts ?

    • @hylight5157
      @hylight5157 6 ปีที่แล้ว

      No, they won't. It's basically sending an email, but instead the receiver will receive it as a sms.

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

      @@hylight5157 is it working?

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

    sir can we get a 2022 version of this?

  • @YamekDrope
    @YamekDrope 8 ปีที่แล้ว

    Adam you are the best, i just have one question:(
    Is that's going to be free? In fact How does that works?
    I have seen some websites where they offered different packages of number of texts in exchange of $$. Is texting online free ?

  • @utkarshjaiswal8154
    @utkarshjaiswal8154 7 ปีที่แล้ว

    how can i send bulk sms for free with the shop name is their is any way to do it

  • @muhammadtowhid8064
    @muhammadtowhid8064 7 ปีที่แล้ว +1

    Hi Adam Khoury,
    Thank you very much for this excellent tutorial.
    I am going to develop a website for the purpose of social welfare around the world. I need to embed SMS system to verify the mobile numbers of the users.
    My questions:
    Do I need to buy and embed bulk SMS package in my website for it?
    or, Can I use the system you have shown in free of charge?
    Will the carrier charge the SMS recipients for the SMS my application sends?
    Cheers,
    Shahid

    • @getrekt3983
      @getrekt3983 7 ปีที่แล้ว +1

      it depends on your recipients plan. most plans do not charge for texts coming in, however the same can not be said about all plans

    • @muhammadtowhid8064
      @muhammadtowhid8064 7 ปีที่แล้ว

      Thanks for the reply.

  • @kwakuamoh-aboagye
    @kwakuamoh-aboagye 6 ปีที่แล้ว

    Free or I have to pay for API or anything

  • @cymburyoox6235
    @cymburyoox6235 6 ปีที่แล้ว

    how to get the sms domain of your carier?

  • @GlobalInsightsForum
    @GlobalInsightsForum 6 ปีที่แล้ว

    Hi Mr.Adam, this is very nice video. I want to start my own bulk sms services with own gatway. so please guide me. Thanks

  • @ekimlim6810
    @ekimlim6810 7 ปีที่แล้ว

    hey sir this is free? at least 100 free text everyday and reload another day?

  • @creativemindshere
    @creativemindshere 7 ปีที่แล้ว

    should this work on something mamp ? or do you need hosting?

    • @getrekt3983
      @getrekt3983 7 ปีที่แล้ว

      you can use your email address to send emails to these gateways but with hosting you can send anonymously

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

    will it work in 2022?

  • @johnmahugu
    @johnmahugu 6 ปีที่แล้ว

    doesnt work in my country (kenya), all the service providers have locked this feature, its easier to just use the carriers API in php to send msgs or to buy a GSM modem and send texts from your own local server

  • @RealClevelandBrown
    @RealClevelandBrown 8 ปีที่แล้ว +2

    Hey Adam. Can you show how to send random verification numbers as additional security to log into a website using php? Something like how Google/Godaddy does as an additional layer of security for its members.

    • @AniltonNeto
      @AniltonNeto 8 ปีที่แล้ว +7

      +uradamnfool2 this is called two step authentication and for to do this you must to make sure some basic concepts. First generate a random number from php range. It's depends on what you really like and it should be unique, then every time that you send the number you should save (on database) the number at the very precise moment you sent it (The security reason). After the user insert this number on login screen you update the number on database as used. Only you have to garante is when the api fails and the user did not receive the number then you have to generate the number like 3 or 4 times. After the user use one of those number then you should update our set a time to use those number.

    • @RealClevelandBrown
      @RealClevelandBrown 8 ปีที่แล้ว

      +Anilton Neto I appreciate you explaining the process. I learn more visually, though. I guess I'll need to check TH-cam for any tutorials. Thanks.

    • @sncabs4916
      @sncabs4916 7 ปีที่แล้ว +1

      its simple create random string with function rand(); and store this value to database

    • @MuhammadUsman-rs2le
      @MuhammadUsman-rs2le 5 ปีที่แล้ว +1

      //

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

    My network is Airtel. So what will my career be?

  • @michiganfishingadventure4915
    @michiganfishingadventure4915 8 ปีที่แล้ว

    Thanks Adam, working perfect

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

      Did it work?

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

      Mine didn't work

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

      U have newly updated code on it?

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

      Is it sending free without fees?

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

      @@Heavenig how can I contact you are you in USA if yes.. come let me use your number while coding.

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

    Sir, can you mke a tutorial for, seding sms using php with sensor and node mcu? I really need now

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

    Is there cost to do this ?

  • @NiceTubeAccount
    @NiceTubeAccount 8 ปีที่แล้ว

    great optimistic ringtone :-) LOL

  • @popforall
    @popforall 8 ปีที่แล้ว

    thank you

  • @funandlearn5104
    @funandlearn5104 8 ปีที่แล้ว

    Is this work for Bangladesh???

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

    What is carrier?

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

    what about indian telecom users

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

    Will it cost the client

  • @Vgarden-mo3xd
    @Vgarden-mo3xd 3 ปีที่แล้ว

    How to create playlists attach with video player in php

  • @nobirhossain3794
    @nobirhossain3794 7 ปีที่แล้ว

    Hey Adam
    sorry for disturbing
    i am curious that how you get https in your website ?? please reply i want to know that :D
    advance Thanks :D

    • @hylight5157
      @hylight5157 6 ปีที่แล้ว

      Yeah, thats called SSL (Secure Socket Layer) try using sslforfree.com, its free!

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

    Ek website banani hai...php MySQL mai... Help milega?

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

    i wish this have part 2 where a human can enter a phone number then a site stored in a sql database then checks if the number is already in database it will not receive txt anymore. for example free voucher

  • @kavindamk
    @kavindamk 8 ปีที่แล้ว +2

    Nice tute mate.. does this work for any country?

    • @MrShawnlloyd
      @MrShawnlloyd 8 ปีที่แล้ว +1

      Nope, you will have to test it in your country to see if it will work for you.

    • @hylight5157
      @hylight5157 6 ปีที่แล้ว

      It does, only if that country has a service provider, then you just need to grab the SMS gateway for that service provider