Multimedia Message MMS - (MMS message type, MMS message format)
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).
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!
More information
- Introducción a los tipos de mensajes móviles
- Especificación de tipo de mensaje móvil - Mapa de bits OTA SMS
- Especificación de tipo de mensaje móvil - Logo de operador SMS, XML
- Especificación de tipo de mensaje móvil - Logo de operador SMS, binario
- Especificación de tipo de mensaje móvil - Tono de llamada SMS
- Especificación de tipo de mensaje móvil - WAP Push SMS
- Especificación de tipo de mensaje móvil - SMS binario XML
- Especificación de tipo de mensaje móvil - VCard SMS
- Especificación de tipo de mensaje móvil - VCalendar SMS
- Introducción a la indicación de mensaje SMS
- Especificación de tipo de mensaje móvil - Enlace a página web, SMS
- Mensaje multimedia MMS
- Especificación de tipo de mensaje móvil - Configuración del navegador OTA SMS
- Especificación de tipo de mensaje móvil - Configuración OTA SyncML SMS
- Especificación de tipo de mensaje móvil
- Cómo enviar un mensaje USSD
- Especificación de tipo de mensaje móvil - WAP Push SL SMS
- Especificación de tipo de mensaje móvil - Mensaje de imagen