7256 SMS Gateway - Message types, MMS example

                

Search the manual:

Overview Quick start Download Manual How to buy FAQ Contact Us
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

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
  Send message
  Receive message
  Billing methods
  Urlencode
  Select operator
  Operate with single message
  Query the addressbook
  Operations with message folders
  Examples
  Message types
  MMS example
  Binary SMS example
  Multiple recipients
  Query the message templates
  User handling
  Service Provider Connection Handling
  Reporting API
  Dynamic SMPP parameters
  SQL SMS API
  C Sharp SMS API
  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
 



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.


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

Webphone solutions:
- Adobe Flash video phone
- Silverlight video phone
- Web to web calls
- Web to VoIP calls

Custom SIP clients:
- Silverlight SIP VoIP client
- Flash SIP VoIP client
- C# .net SIP VoIP client
- ASP .net SIP VoIP client
- Web based SIP VoIP client

Custom VoIP solutions:
- VoIP SIP softphones
- VoIP call center clients
- VoIP IVR systems
- VoIP predictive dialer systems
- VoIP auto dialer systems
- VoIP call assistant
- VoIP call recording systems
- VoIP intercom solutions

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 - 2013 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


0