Question on Received Text Message | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through April 12, 2010 ⬆ |
◄ ► |
Author | Message | |||
jayrom villaruz New member Username: Jj_v30 Post Number: 1 Registered: 02-2010 |
hi, im creating a SMS-oriented system and this is my first time to use nowSMS. i would just like to ask if it is possible for me to "use" the text messages that i receive. like for example: responding to certain keywords, getting the recipient's number to send a reply, sorting the messages, etc. im using PHP by the way. thanks in advance. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1820 Registered: 08-2008 |
Hi, Absolutely. PHP is one of the best ways to process received messages. This is done through the 2-way SMS command interface. http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm There's a good old thread with some PHP examples here: http://support.nowsms.com/discus/messages/1/4520.html And you'll find some additional links with PHP related info here: http://www.nowsms.com/support/api.htm -- Des NowSMS Support | |||
jayrom villaruz New member Username: Jj_v30 Post Number: 2 Registered: 02-2010 |
hi des, thanks, that surely helped a lot. however, i have another problem regarding 2-way sms. i keep getting this reply: Command not completed. Request returned invalid content type: text/html The confusing thing is, I added the command: header("content-type: text/plain"); but still get the error that the content type is text/html. how should i resolve this? | |||
jayrom villaruz New member Username: Jj_v30 Post Number: 3 Registered: 02-2010 |
Ok, sorry for that. I managed to solve it. thanks anyway. but here is another question: can i obtain from the database more than 1 recipient in order to send a broadcast message? Im having problems sending to more than 1 recipient using this command: SendSMS("127.0.0.1", 8800, "username", "password", "+6391234567", "message to broadcast"); Thanks in advance. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1825 Registered: 08-2008 |
Hi, In the phone number field you can use a comma delimited list of phone numbers (like "1234,5678,9012"). You can also use the SendSMS function multiple times if you are not sending the same message each time. -- Des NowSMS Support |