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

OZEKI NG SMS Gateway - Product Guide

Bookmark Contents | SearchMMS

Home > Product Manual > Appendix > C - Message types > MMS:XML

 


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.

Multimedia Message MMS
(MMS message type, MMS message format)

Video tutorial: How to send MMS from your PC using Ozeki NG (part 1/2, install and configure)
Video tutorial: How to send MMS from your PC using Ozeki N (part 2/2, send a test message)

Introduction

Ozeki NG SMS Gateway can be used to send MMS messages. Each MMS message contains a text part and several attachments. Attachments can contain audio, video, applications, presentation files and text content. A detailed list of available message types for MMS messages can be found in the MMS content format list. To send MMS messages with Ozeki NG, all you have to do is specify "MMS:XML" as the message type and prepare an XML file that contains the message attachments. You can use all the methods you have used for SMS messaging.

Message type

MMS:XML

The format of the message data is:

<MMS>
  <subject>Hello world</subject>
  <messagetext>This is the message text</messagetext>
  <deliveryreport>on</deliveryreport>
  <readreport>on</readreport>
  <priority>high</priority>
  <messageclass>personal</messageclass>
  <attachments>
      <attachment>
         <filename>c:\tmp\mmsdemo.gif</filename>
      </attachment>
      <attachment>
         <filename>c:\tmp\music.mp3</filename>
      </attachment>
  </attachments>
</MMS>

Sending an MMS message

To send an MMS messages from the built in user interface, you need to copy the attachments to your hard disk, and you need to specify the full path pointing to them in the MMS composer form (Figure 1).



Figure 1 - MMS attachments with full path.

To send an MMS message from an API, you have to copy the attachments to the server in a directory, then you have to build an XML file, that points to the attachments. This XML should be pasted into the messagedata field of the message and you need to use the "MMS:XML" message type. For example if you use the database user to send MMS messages from a database you would use the following SQL Insert statement to send you MMS messages:

SQL example:

insert into ozekimessageout (receiver,msgtype,msg,status) values ('+36205222245',
         'MMS:XML','<MMS>
  <subject>Hello world</subject>
  <messagetext>This is the message text</messagetext>
  <deliveryreport>on</deliveryreport>
  <readreport>on</readreport>
  <priority>high</priority>
  <messageclass>personal</messageclass>
  <attachments>
      <attachment>
         <filename>c:\\tmp\\mmsdemo.gif</filename>
      </attachment>
      <attachment>
         <filename>c:\\tmp\\music.mp3</filename>
      </attachment>
  </attachments>
</MMS>','send');
Please note the double back slash in the file path of the MMS attachments. This might be necessary when you insert the data into your SQL database server because a single back slash might be treated as an escape character!



Next page: MMS
Copyright © 2000- - Ozeki Ltd | info@ozeki.hu
Home > Product Manual > Appendix > C - Message types > MMS:XML
Legal | Privacy | Terms of use | 2459
3.92.74.105 | 87.229.102.173 | Login