Simulate sms message into nowsms | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through December 09, 2003 ⬆ |
◄ ► |
Author | Message | |||
Anonymous |
Hi, Can I simulate an sms message coming into nowsms by writing a file, into a nowsms directory and that gets picked up by nowsms as an incoming sms. This is then processed based on 2-Way settings? If so, what do I need to do? Tunu | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1171 Registered: 10-2002 |
Hi Tunu, Yes, you could. I can give you instructions on how to simulate the receipt of a simple SMS text message. Create a file in the SMS-IN subdirectory (under the NowSMS directory ... create this directory if it does not exist as it is normally created automatically the first time a message is received). This file should have a .IN file extension. For the content of the file, make it look like this: [SMS-IN] Sender=senderPhoneNumber Data=Text of message If you need to use a carriage return or line feed in the message, escape them as "\r" and "\n" respectively. Also note that the text is expected to be in UTF-8 format (if you are using any extended characters), as normally NowSMS would convert the received message data into UTF-8 format before it creates this file. -bn |