Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozekisms.com
Tel.: 00 36 52 532 731
SMS Gateway to send SMS via GSM modem or IP SMS connection Overview SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Quick start SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Download SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Manual SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection How to buy SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection FAQ SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Contact Us SMS Gateway to send SMS via GSM modem or IP SMS connection
OZEKI NG SMS Gateway - Product Guide

logout Contents | Searchlog

Home > Product Manual > Developers Guide > C Sharp SMS API > SMS API functions > Send SMS message

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  Tutorials
  ASP SMS API
  PHP SMS API
  HTTP SMS API
  SQL SMS API
  C Sharp SMS API
  SMS API functions
  login
  logout
  Send SMS message
  log
  keepalive
  SMS delivered to network
  SMS delivery report
  SMS delivery failed
  SMS received
  C sharp and MS SQL Server
  Registering remote objects
  C Sharp SMS Gateway
  AJAX SMS API
  Delphi SMS API
  Cpp SMS API
  Java SMS API
  VB.NET SMS API
  Python SMS API
  Perl SMS API
  TCL/TK SMS API
  Coldfusion SMS API
  VB 6 SMS API
  Examples and Solutions
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
  Cookie policy
 


Automated phone calls?
Ozeki Phone System XE VoIP PBX software is an advanced PBX built for automated voice calls and 2 way SMS messaging. It has outstanding APIs for software developers. It can be used for:

Phone calls from SQL
Phone calls from HTTP
Voice and SMS applications

Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create VoIP client and server software.

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

C# SMS API - sendMessage method

This method can be used to post an SMS message to the SMS Gateway. It has several overloads that give you a lot of flexibility.

     Name Description
string sendMessage(string receiver, string message); Sends a text SMS message to the recipient phone. You need to specify the receiver phone number and the message text.

Parameters

receiver - The recipient phone number. It can be specified in International format (starting with a leading plus sign and country code) or in Local number format.

message - The message text. The message text can be longer then 160 characters and can contain unicode characters. If the message text is long the message will be sent in more then one parts by the gateway (multipart sms). If the message text cannot be encoded int the GSM 7bit alphabet it will be sent as unicode SMS message.

Returns

A unique message id - This id is used in the onMessageDeliveredToNetwork and onMessageDeliveredToHandset events.

Example

string id = sendMessage("+36205464567","Hello world");
string sendMessage(string sender, string receiver, string message); Provides the same functionality as above and makes it possible to specify the sender phone number. Please note that the sender phone number can be modified in IP SMS connections only. If you use a GSM Modem to send SMS messages you cannot change the sender phone number in the message.

Parameters

sender - The sender phone number. This can be a phone number in International or local number format or an alphanumeric string with a maximum length of 11 characters.

receiver - The recipient phone number.

message - The message text.

Returns

A unique message id - This id is used in the onMessageDeliveredToNetwork and onMessageDeliveredToHandset events.

Example

string id = sendMessage("+36201115555","+36205464567","Hello world");
string sendMessage(string sender, string receiver, string message, string messagetype); This overload makes it possible to send text and binary messages such as WAP PUSH, oplogos, ringtones, etc.

Parameters

sender - The sender phone number.

receiver - The recipient phone number.

message - The SMS message text or the binary SMS message data. The binary message data is usually represented as an XML. The format of the XML is determined by the SMS message type.

messagetype - The message type, that determines the format of the message. By selecting the appropriate message type you can send a FLASH SMS, a binary SMS or any other special SMS content. For more information on available message types, see our Appendix J - SMS Message Types.

Returns

A unique message id - This id is used in the onMessageDeliveredToNetwork and onMessageDeliveredToHandset events.

Example

string id = sendMessage("+36201115555","+36205464567","Hello world","SMS:TEXT");
string sendMessage(string sender, string receiver, string message, string messagetype, string serviceProvider); This overload provides the same functionality as above and it gives you an option to select which service provider connection should be used to send the message.

Parameters

sender - The sender phone number.

receiver - The recipient phone number.

message - The SMS message text or the binary SMS message data.

messagetype - The message type.

serviceProvider - The serviceprovider name. For example when you create an SMPP connection you can define the service provider name on the configuration form. If you use the specified name in this function, you can make sure the specified service provider connection will be used to transmit the message. (Hint: You should check the "Allow routing table override" checkbox in the advanced tab of the user configuration form in the SMS gateway to allow this functionality to override the routing table of the server.)

Returns

A unique message id - This id is used in the onMessageDeliveredToNetwork and onMessageDeliveredToHandset events.

Example

string id = sendMessage("+36201115555","+36205464567","Hello world","SMS:TEXT","SMPP0");


Dig deeper!
People who read this also read...





Next page: log
Copyright © 2000 - 2017 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com