Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to receive the mobile sms to a server using php

Can any one explain how to achieve the below requirement.

  1. Say user sends a message like eg: TDFEED Nice work ! to some common no like 5858.
  2. I need to receive this text message to my server.
  3. Manipulate the text and in reply i need to send an acknowledgement.

I need how to achieve this using php or any other language.

Thanks, Lokesh.

like image 873
Lokesh Avatar asked Oct 30 '25 04:10

Lokesh


2 Answers

Use Twilio (http://www.twilio.com/), I'm using them now to send SMS messages and their API for receiving them is very simple and easy to setup.

Docs: http://www.twilio.com/docs/quickstart/sms/hello-monkey

like image 174
Ryan Doherty Avatar answered Oct 31 '25 18:10

Ryan Doherty


You can use this SMS software http://smsenabler.com. It can automatically post incoming SMS messages to the URL of your PHP script and send back reply SMS messages.

It uses a 3G/GSM modem (dongle) plugged in a computer to receive SMS. Such modems/dongles have a SIM card inside, therefore they have a phone number to which text messages can be sent.

like image 26
CITBL Avatar answered Oct 31 '25 19:10

CITBL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!