Import text file to genarate sms

Import text file to genarate sms SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through October 19, 2005 » Import text file to genarate sms « Previous || Next »
Author Message
marios
Unregistered guest
Posted on Tuesday, October 04, 2005 - 11:00 am:   

I have a text file with about 300 entries (phone number, message). Can I have the SMS gateway read the file and send SMSs directly?

Thanks
Marios
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5042
Registered: 10-2002
Posted on Wednesday, October 05, 2005 - 01:45 pm:   

Hi Marios,

It would be relatively easy to write a Windows script file to do this. But the specifics of such a script would depend on the exact format of that text file.

Here's a link to a Windows script example for sending SMS from the command line:

http://support.nowsms.com/discus/messages/1/5318.html

If you could modify your text file to the following format:

cscript sms.js phonenumber text of message
cscript sms.js phonenumber text of message
cscript sms.js phonenumber text of message
cscript sms.js phonenumber text of message
cscript sms.js phonenumber text of message

Then you could give the file a ".bat" extension, and execute it as a batch file, running the sms.js script for each line in the text file.

Of course, you could also write a script like sms.js that parsed your existing file format.

-bn

Login Login / Register Logout Logout Search Last 30 Days Topics Topics