How to send SMS to mobile phones from website using PHP & Infobip API

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • In this video, we will learn how to send SMS to mobile phone from your website using PHP & Infobip SMS API
    You may also want to watch:
    How to send SMS messages from website to multiple phone numbers using PHP code
    studio.youtube...
    Wallpaper by Kevin MacLeod | incompetech.com/
    Music promoted by www.chosic.com...

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

  • @sohamsuryawanshi3538
    @sohamsuryawanshi3538 5 หลายเดือนก่อน

    hi I'm having error but in code there no mistake and error is
    Warning: Undefined array key "phonenumber" in C:\xampp\htdocs\sms\sendSMS.php on line 13
    Fatal error: Uncaught TypeError: Infobip\Model\SmsDestination::__construct(): Argument #1 ($to) must be of type string, null given, called in C:\xampp\htdocs\sms\sendSMS.php on line 25 and defined in C:\xampp\htdocs\sms\vendor\infobip\infobip-api-php-client\Infobip\Model\SmsDestination.php:39 Stack trace: #0 C:\xampp\htdocs\sms\sendSMS.php(25): Infobip\Model\SmsDestination->__construct(NULL) #1 {main} thrown in C:\xampp\htdocs\sms\vendor\infobip\infobip-api-php-client\Infobip\Model\SmsDestination.php on line 39

    • @syntax_flow
      @syntax_flow  5 หลายเดือนก่อน

      It is case-sensitive. So phonenumber is different from phoneNumber. So check your HTML code. I'm sure you used phoneNumber in the HTML code

  • @AdityaThagarthi
    @AdityaThagarthi หลายเดือนก่อน +2

    How did those php files are created can tell

    • @syntax_flow
      @syntax_flow  10 วันที่ผ่านมา

      just the way other php files were created. If you have done any
      thing on php before, it should not be a problem.

  • @pateldhanyaripankumar8042
    @pateldhanyaripankumar8042 4 หลายเดือนก่อน

    Can you provide us source code?

    • @syntax_flow
      @syntax_flow  4 หลายเดือนก่อน

      Please join our community membership to have access to every source code in our videos.

    • @JogineSumaria
      @JogineSumaria 4 หลายเดือนก่อน

      How to join sir?

  • @wild_animal_facts44
    @wild_animal_facts44 10 หลายเดือนก่อน +1

    sir please how to fix this "Failed to download doctrine/deprecations from dist: The zip extension and unzip/7z commands are both missing, skipping.
    The php.ini used by your command-line PHP is: C:\Program Files\php-8.3.0\php.ini
    Now trying to download from source"

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน +1

      Run the command again. Be sure you are using a stable internet connection.

    • @wild_animal_facts44
      @wild_animal_facts44 10 หลายเดือนก่อน

      thank u for your efforts bruh. we waiting for more videos@@syntax_flow

  • @PraveenaL-kp6lk
    @PraveenaL-kp6lk 6 หลายเดือนก่อน +1

    SMS message sent in my site but didn't receive to my mobile

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      Make sure you add your country code to the phone number.

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      ...for example, if your phone number is
      034567003333 and you live in the UK, you will input +4434567003333

    • @PraveenaL-kp6lk
      @PraveenaL-kp6lk 6 หลายเดือนก่อน

      @@syntax_flowyes sir I add country code

  • @olatunjipelumi4671
    @olatunjipelumi4671 11 หลายเดือนก่อน +1

    Great job sir!
    Is it possible to send to several numbers at the same time, i mean maybe uploading an excel file and broadcast to all at the same time sir?

    • @syntax_flow
      @syntax_flow  11 หลายเดือนก่อน +1

      Yes, it is possible. All we need is to tweak the code a little bit.

    • @olatunjipelumi4671
      @olatunjipelumi4671 11 หลายเดือนก่อน

      @@syntax_flow how do we do this sir?

    • @syntax_flow
      @syntax_flow  11 หลายเดือนก่อน

      @@olatunjipelumi4671 I may have to create a tutorial for that soon when I have the time.

    • @syntax_flow
      @syntax_flow  11 หลายเดือนก่อน +1

      ...note: SMS gateways only permit few free SMS. So you may not be able to test for very many numbers.

    • @olatunjipelumi4671
      @olatunjipelumi4671 11 หลายเดือนก่อน

      ok sir
      @@syntax_flow

  • @chinmayk2657
    @chinmayk2657 หลายเดือนก่อน

    I am using visual studio

  • @tarahfan8300
    @tarahfan8300 6 หลายเดือนก่อน

    Even if i buy a plan, is this the code that i need? Or do i need to change the code?

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      This is all you need.

  • @umadevisrianuhyanunna8570
    @umadevisrianuhyanunna8570 10 หลายเดือนก่อน +1

    I used the code message sent is viewed on website but message is not delivered...when i check the status in website i'm getting errors1):579 i.e, REJECTED DESTINATION NOT REGISTERED and 2) REJECTED NETWORK how i can i fix this??

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน

      Based on the error, the issue is from the service provider.
      NB: remember to add your country code to the phone number.

  • @rakzam488
    @rakzam488 8 หลายเดือนก่อน

    composer : The term 'composer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.

    • @syntax_flow
      @syntax_flow  8 หลายเดือนก่อน

      You need to install Composer on your machine. Click the link below, look for the download link in the page to download and install.
      www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=getcomposer.org/download/&ved=2ahUKEwjp_8nYjvODAxUqT0EAHZWDC48QFnoECCQQAQ&usg=AOvVaw0hifbxuQZySOtGjSzPWfJo

  • @Iamstephane
    @Iamstephane 6 หลายเดือนก่อน

    Hello, I just watched your video and followed the steps but I got this error Uncaught Error: Class "infobip\Configuration" not found. Please how can I fix it?

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      The error is likely from the first four lines. Crosscheck to be sure you typed those lines correctly.
      Note:: it is case sensitive.

    • @cravismint6048
      @cravismint6048 4 หลายเดือนก่อน

      You need to do it in Laravel

  • @GabrielEnobore
    @GabrielEnobore 11 หลายเดือนก่อน +1

    This is so easy to follow. Thank you.❤

    • @syntax_flow
      @syntax_flow  7 หลายเดือนก่อน

      You are welcome

  • @chinmayk2657
    @chinmayk2657 หลายเดือนก่อน

    I am using visual studio c# and i want code to test and whether integration with web app work properly or not.

    • @syntax_flow
      @syntax_flow  หลายเดือนก่อน

      @@chinmayk2657 the example in this video is based on PHP.. It can also be done with C# driven website with little modifications here and there.

    • @chinmayk2657
      @chinmayk2657 หลายเดือนก่อน

      Can you tell step by step so that i.can integrate with app​@@syntax_flow

  • @IkponmwosaEkhaguosa
    @IkponmwosaEkhaguosa 6 หลายเดือนก่อน

    Wow! It works! Thank you❤

  • @wild_animal_facts44
    @wild_animal_facts44 9 หลายเดือนก่อน

    what to do now please:
    "your git was not found in your path, skipping source download"

    • @syntax_flow
      @syntax_flow  9 หลายเดือนก่อน

      Run the command again. Be sure you have a stable internet connection

  • @chinmayk2657
    @chinmayk2657 หลายเดือนก่อน

    What if i want send OTP verification integration for my website

    • @syntax_flow
      @syntax_flow  หลายเดือนก่อน

      @@chinmayk2657 it will work as well.

    • @syntax_flow
      @syntax_flow  หลายเดือนก่อน

      @@chinmayk2657 This expressly answers your question:
      Integrating SMS with website
      m.th-cam.com/video/z4UNScQSjKY/w-d-xo.html

    • @chinmayk2657
      @chinmayk2657 หลายเดือนก่อน

      I am using visual studio and can you please tell me - each and every steps involved.

    • @syntax_flow
      @syntax_flow  หลายเดือนก่อน

      @@chinmayk2657 it doesn't matter what you use, what matters is the code and it is clearly shown in the video.

  • @digby2263
    @digby2263 10 หลายเดือนก่อน

    quick question, do infobip only send messages to registered numbers from the infobip website??

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน

      I guess so because the messages they send routes through the recipient's country's network. So if the country is strict on SIM registration, the messages can only deliver to registered phone numbers only.

    • @digby2263
      @digby2263 10 หลายเดือนก่อน

      @@syntax_flow I just read about it at there website and it says since I am using the Free Trial version I can only send messages to numbers that are verified by infobip.

  • @mukilanj30
    @mukilanj30 10 หลายเดือนก่อน

    SMS message sent in my site but didn't receive to my mobile

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน

      It may take some time before the message is delivered. It depends on the service provider.

  • @jonylvillanueva9124
    @jonylvillanueva9124 9 หลายเดือนก่อน

    Account not provisioned for global one- or two-way SMS (code: 592) i get this error

    • @syntax_flow
      @syntax_flow  9 หลายเดือนก่อน

      This seems like a token issue. Confirm and try again.

    • @jonylvillanueva9124
      @jonylvillanueva9124 9 หลายเดือนก่อน

      do I need to by number to after upgrading my account?
      @@syntax_flow

  • @pkginstll
    @pkginstll หลายเดือนก่อน

    hi, i follow your code but there is an error wherein
    Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\SMS\sendSMS.php on line 18
    and the line 18 is
    $configuration = new Configuration(host: $apiURL, apiKey: $apiKey);
    can you help me in this error?

    • @syntax_flow
      @syntax_flow  หลายเดือนก่อน

      Check the code very well. Ensure you have API KEY from the website as shown in the video

  • @smmomtahinsium5343
    @smmomtahinsium5343 4 หลายเดือนก่อน

    Please share this code

    • @syntax_flow
      @syntax_flow  4 หลายเดือนก่อน

      Please join our community membership to have access to every source code in our videos.

  • @johnalbertadonisgatmaitan3495
    @johnalbertadonisgatmaitan3495 6 หลายเดือนก่อน

    It seems the echo message is appear, but I didn't receive the message on my number, whats wrong with this?

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      Things to note:
      1. Be sure include your country code with the phone number.
      2. Check that you didn't activate DND on your phone number.

    • @johnalbertadonisgatmaitan3495
      @johnalbertadonisgatmaitan3495 6 หลายเดือนก่อน

      @@syntax_flow Thanks for the tips but can I ask how can I include the country code? It is from entering my phone number on the input field or should I do something in the code?

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      @@johnalbertadonisgatmaitan3495 it is through the input field. For example, if your phone number is
      034567003333 and you live in the UK, you will input +4434567003333

    • @johnalbertadonisgatmaitan3495
      @johnalbertadonisgatmaitan3495 6 หลายเดือนก่อน

      @@syntax_flow Should I activate my Infobip account for this?

    • @johnalbertadonisgatmaitan3495
      @johnalbertadonisgatmaitan3495 6 หลายเดือนก่อน

      @@syntax_flow Oh I did it RN, I thought I could send a message to anyone else, but that isn't I added my number as a receipt on the website of infobip, right now I received the message, I registered my other number instead of the number that I want to use for receiving anyway thanks for this code this is very helpful hope you can do more about API. I appreciate this vids THANK YOU SO MUCH

  • @Lufty20
    @Lufty20 5 หลายเดือนก่อน

    Apakah bisa untuk menerima pesan juga?

    • @syntax_flow
      @syntax_flow  5 หลายเดือนก่อน

      Ya itu mungkin. Terima kasih telah menonton.

  • @yoskokleng3658
    @yoskokleng3658 5 หลายเดือนก่อน

    is it free sms sir?

    • @syntax_flow
      @syntax_flow  5 หลายเดือนก่อน

      Yes. But you have limited number of messages you can send.

  • @Manikandan-od7gg
    @Manikandan-od7gg 6 หลายเดือนก่อน

    please give me full code

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      Source code is for channel members

  • @JogineSumaria
    @JogineSumaria 4 หลายเดือนก่อน

    Can you give me the source code?

    • @syntax_flow
      @syntax_flow  2 วันที่ผ่านมา

      Source code is for community members. Please join our community membership

  • @MaryuriCastellanosHorta
    @MaryuriCastellanosHorta 7 หลายเดือนก่อน

    Great! Could you do one about emails from infobip API?

  • @edwardklem7718
    @edwardklem7718 10 หลายเดือนก่อน

    Quick question how do I get the other files css, nbproject and images. The composer function i typed isn't working

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน +1

      nbproject was auto generated because of the code editor I used before I switched to VSCode. It has nothing to do with the code.
      The CSS and images are just there to make the program look a little pleasing to look at.
      You may need to reinstall the composer and check the code again to be sure you have not missed anything.

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน

      Make sure you enter your country code to the phone number.

    • @edwardklem7718
      @edwardklem7718 10 หลายเดือนก่อน

      @@syntax_flow yea just an update it worked- turns out the number i was sending to the network didn't accept it

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน +1

      @@edwardklem7718 Wow! Good to hear.

  • @uyiosa247
    @uyiosa247 11 หลายเดือนก่อน

    I thought of this yesterday, you did it today. Thank you for this video.

    • @syntax_flow
      @syntax_flow  11 หลายเดือนก่อน

      Glad to hear

  • @honeyleemondejar8830
    @honeyleemondejar8830 9 หลายเดือนก่อน

    it can send bulk messages?

    • @syntax_flow
      @syntax_flow  9 หลายเดือนก่อน +1

      No. You need to tweak to code to do that. I may make a video regarding that when I have the time.

  • @JogineSumaria
    @JogineSumaria 4 หลายเดือนก่อน

    Source code please

  • @kuysvisuals6250
    @kuysvisuals6250 10 หลายเดือนก่อน

    composer : The term 'composer' is not recognized as the name of a cmdlet, function, script file, or operable program.

    • @syntax_flow
      @syntax_flow  10 หลายเดือนก่อน

      You need to install composer on your system. Click on this link below to download and install.
      getcomposer.org/

    • @rakzam488
      @rakzam488 8 หลายเดือนก่อน

      @@syntax_flow how to install?

    • @rakzam488
      @rakzam488 8 หลายเดือนก่อน

      @@syntax_flow how to install it please

  • @DharaKhandhediya
    @DharaKhandhediya 7 หลายเดือนก่อน

    I get this error - Unknown named parameter $host. Please help in this

    • @syntax_flow
      @syntax_flow  7 หลายเดือนก่อน +1

      Check the code very well. You seem to be misspelling some of the words. Note: it is case sensitive

    • @DharaKhandhediya
      @DharaKhandhediya 7 หลายเดือนก่อน

      @@syntax_flow I check everything still getting this error. Is there any source code link?

    • @syntax_flow
      @syntax_flow  7 หลายเดือนก่อน

      @@DharaKhandhediya is the error the same as you got before?

    • @DharaKhandhediya
      @DharaKhandhediya 7 หลายเดือนก่อน

      @@syntax_flow After update composer, now I get this error - Unknown named parameter $apikey

    • @DharaKhandhediya
      @DharaKhandhediya 7 หลายเดือนก่อน

      I used this version - "infobip/infobip-api-php-client": "^5.0" in composer.json file

  • @ivieaigbovbiosa2002
    @ivieaigbovbiosa2002 11 หลายเดือนก่อน

    It works! Thank you

    • @syntax_flow
      @syntax_flow  5 หลายเดือนก่อน

      You're welcome

  • @EuniceIyare
    @EuniceIyare 11 หลายเดือนก่อน

    ❤❤❤

  • @raymondmoundzele4907
    @raymondmoundzele4907 6 หลายเดือนก่อน

    Very cool thank you

    • @syntax_flow
      @syntax_flow  6 หลายเดือนก่อน

      You are welcome

    • @samuthece3228
      @samuthece3228 หลายเดือนก่อน

      can you give source code and some guide

  • @IKPLove
    @IKPLove 11 หลายเดือนก่อน

    ❤❤❤❤❤

  • @Hadjer-lf1nn
    @Hadjer-lf1nn 5 หลายเดือนก่อน

    Sir can you give me the full code, Please

    • @syntax_flow
      @syntax_flow  5 หลายเดือนก่อน

      Please join our community membership to have access to every source code in our videos.

    • @JogineSumaria
      @JogineSumaria 4 หลายเดือนก่อน

      How to join sir?

    • @syntax_flow
      @syntax_flow  4 หลายเดือนก่อน

      @@JogineSumariaClick on the link below to join.
      @JogineSumaria Click on the link below to join.
      When joining, pick the membership type that has access to all source code
      th-cam.com/channels/jPCJpjdTXM3VwUUSIkwVCg.htmljoin

  • @whilrhiedemitillo2258
    @whilrhiedemitillo2258 4 หลายเดือนก่อน

    PLEASE FIX THIS
    failed to download doctrine/deprecations from dist: The zip extension and unzip/7z commands are both missing, skipping.
    The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
    Now trying to download from source
    In GitDownloader.php line 82:
    git was not found in your PATH, skipping source download

    • @syntax_flow
      @syntax_flow  4 หลายเดือนก่อน

      This error usually occurs due to network instability during download. Please repeat the download process.

  • @Thestonez-vg2lp
    @Thestonez-vg2lp 5 หลายเดือนก่อน

    is it free

    • @syntax_flow
      @syntax_flow  5 หลายเดือนก่อน

      Yes. But if you need to send to thousands of numbers, you will need to pay.

    • @Thestonez-vg2lp
      @Thestonez-vg2lp 5 หลายเดือนก่อน

      @@syntax_flow thanks

  • @YoutubeMFlix
    @YoutubeMFlix 2 หลายเดือนก่อน

    Can I get your contact sir

    • @syntax_flow
      @syntax_flow  2 หลายเดือนก่อน

      @@TH-camMFlix you can send me an email via the email address on this channel bio.

  • @tommyndhlovu5455
    @tommyndhlovu5455 7 หลายเดือนก่อน

    this is nice.. work for me

    • @syntax_flow
      @syntax_flow  7 หลายเดือนก่อน

      Glad to know.