On using NowSMS programatically from a web server ..

On using NowSMS programatically from a web server .. SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through July 14, 2005 » On using NowSMS programatically from a web server .. « Previous || Next »
Author Message
Frank Kurka
New member
Username: Fkx

Post Number: 1
Registered: 05-2005
Posted on Thursday, May 12, 2005 - 12:48 am:   

Can anyone point me to the documentation that assist me to understand how I might use the NowSMS system to operate, support and coexist with a IIS web server?

I understand how it is used via manual screens and manual operation .. but I would like to automate it and integrate it with an IIS system and manage its features via server code (.net C# or VBN)

I apologize if this is not the correct forum, and I haven't bought the product yet .. will do if I can resolve this.

I hope I haven't missed it after reading the site documentation so far and read many threads.

Love the product .. hope it can help me with this.

Thanks in advance.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4546
Registered: 10-2002
Posted on Wednesday, May 18, 2005 - 09:02 pm:   

Hi Frank,

I'm not a .NET expert, so I can't give you too many pointers there.

But basically, NowSMS is an HTTP server, so from your code and scripts, you can issue HTTP requests to interact with the NowSMS server, whether they are running on the same PC or different PCs.

I did write a simple ASP.NET script for sending an SMS message. You can find it at the following link:

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

Basically, what that should show you is that you're just issuing a URL request. And you probably have easier ways to do this in your development environment than what I show in that example. You can find more URL examples in the "Documentation" section of the web site.

For receiving SMS, basically NowSMS calls a URL, passing details about the received message. So you would set up a script on your IIS server, and NowSMS would call that script each time it receives an SMS message.

General info on processing received SMS:

http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm

And some more useful information here:

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

-bn
na
New member
Username: Nosij

Post Number: 6
Registered: 05-2005
Posted on Friday, May 20, 2005 - 11:30 am:   

Another C# Winform Sample hope this help


private void fnSendSMS(String strPhoneNumber ,String strSMSMessage)
{


System.UriBuilder urlBuilder = new UriBuilder();
System.Text.StringBuilder strPath = new System.Text.StringBuilder();
urlBuilder.Host="127.0.0.1";
urlBuilder.UserName="sa";
urlBuilder.Password ="agape";
urlBuilder.Query =String.Format("PhoneNumber={0}&Text={1}",strPhoneNumber,strSMSMessage);
urlBuilder.Port=8800 ;

HttpWebRequest httpReq = (HttpWebRequest) WebRequest.Create(new Uri(urlBuilder.ToString() ,false));

HttpWebResponse httpResponse = (HttpWebResponse )(httpReq.GetResponse());
}

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