Multiple commands to execute in 2way sms possible? | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through December 14, 2010 ⬆ |
◄ ► |
Author | Message | |||
schadow1 New member Username: Schadow1 Post Number: 3 Registered: 11-2010 |
hello. is it possible to have more than 1 set of commands to execute in one prefix? lets say a message will be sent to another mobile number and another set message to be sent to the sender upon receiving an sms? thanks! | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2656 Registered: 08-2008 |
Hi, NowSMS will only execute one 2-way command per message. However, there is nothing to stop your 2-way command from sending multiple messages. This does require that you write a script (e.g., PHP, VBScript). NowSMS calls your script and your script issues one or more commands to NowSMS. So, for example, if your 2-way command is a PHP script, your script can call the SendSMS function one or more times to send as many messages as it needs. (See http://www.nowsms.com/doc/submitting-sms-messages/send-sms-text-message-with-php) If you are currently using 2-way commands that issue HTTP requests directly back to NowSMS, then this is more complicated because you have to write a script to process the message. (A good starter script for receiving an SMS message with a PHP script is here: http://support.nowsms.com/discus/messages/1/3991.html. Combine it with the sending script.) -- Des NowSMS Support |