Thursday, 30 May 2013

Filled under:

Ozeki NG SMS Gateway Message Sending Example
Compose a message

Recipient: " size="40">
Message text:
<% if Request.form("recipient") = "" then response.write("Recipient field mustn't be empty!") else dim createdURL createdURL = "" 'It will be the entire URL that we send to Ozeki NG SMS Gateway Server dim ozSURL ozSURL = "http://127.0.0.1" 'URL of that machine on where Ozeki NG SMS Gateway Server is running dim ozSPort ozSPort = "9501" 'Port number on which Ozeki NG SMS Gateway Server is listening to dim ozUser ozUser = server.URLEncode("admin") 'User name of that user who can login to Ozeki NG SMS Gateway Server dim ozPassw ozPassw = server.URLEncode("abc123") 'Password of user above dim ozMessageType ozMessageType = "SMS:TEXT" 'Type of message that we want to send dim ozRecipient ozRecipient = server.URLEncode(Request.form("recipient")) 'Recipient of the message dim ozMessageData ozMessageData = server.URLEncode(Request.form("messagetext")) 'Message text we want to send createdURL = ozSURL & ":" & ozSPort & "/httpapi?action=sendMessage" & "&username=" & ozUser & "&password=" & ozPassw & "&messageType=" & ozMessageType & "&recipient=" & ozRecipient & "&messageData=" & ozMessageData response.Write("

0 comments:

Post a Comment