Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"

OZEKI NG SMS Gateway - Product Guide

Message types Contents | SearchBinary SMS example

Home > Product Manual > Developers Guide > HTTP SMS API > Examples > Message types > MMS example

 


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.

HTTP SMS API Examples

How to send an MMS using the HTTP API

To send a picture message, first you must upload your pictures to the SMS server's hard disk. For example C:\1.gif and C:\2.gif can be created on the SMS servers' C: driver.

To send the message you should use the following message type:

Message type: MMS:XML

To send the message you should use the XML format defined in the MMS XML section of the Ozeki Mobile Message Type Specification.

Message data:
<MMS>
   <subject>This is my MMS subject</subject>
   <messagetext>Hello world</messagetext>
   <deliveryreport>on</deliveryreport>
   <readreport>on</readreport>
   <priority>high</priority>
   <messageclass>personal</messageclass>
   <attachments>
      <attachment>
          <filename>c:\1.gif</filename>
      </attachment>
      <attachment>
          <filename>c:\2.gif</filename>
      </attachment>
   </attachments>
</MMS>

To send this message in an HTTP request, you should urlencode the message data and use the following HTTP URL:

http://127.0.0.1:9501/api?action=sendmessage&username=httpserverusr1&password=pass1& recipient=06203105366&messagetype=MMS:XML&messagedata=%3CMMS%3E%0D%0A+++%3Csubject%3EThis+is+my+MMS+subject%3C%2Fsubject%3E%0D%0A+++%3Cmessagetext%3EHello+world%3C%2Fmessagetext%3E%0D%0A+++%3Cdeliveryreport%3Eon%3C%2Fdeliveryreport%3E%0D%0A+++%3Creadreport%3Eon%3C%2Freadreport%3E%0D%0A+++%3Cpriority%3Ehigh%3C%2Fpriority%3E%0D%0A+++%3Cmessageclass%3Epersonal%3C%2Fmessageclass%3E%0D%0A+++%3Cattachments%3E%0D%0A++++++%3Cattachment%3E%0D%0A++++++++++%3Cfilename%3Ec%3A%5C1.gif%3C%2Ffilename%3E%0D%0A++++++%3C%2Fattachment%3E%0D%0A++++++%3Cattachment%3E%0D%0A++++++++++%3Cfilename%3Ec%3A%5C2.gif%3C%2Ffilename%3E%0D%0A++++++%3C%2Fattachment%3E%0D%0A+++%3C%2Fattachments%3E%0D%0A%3C%2FMMS%3E



Next page: Binary SMS example
Copyright © 2000- - Ozeki Ltd | info@ozeki.hu
Home > Product Manual > Developers Guide > HTTP SMS API > Examples > Message types > MMS example
Legal | Privacy | Terms of use | 2515
3.228.11.9 | 87.229.102.173 | Login