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
- Introduction aux types de messages mobiles
- Spécification du type de message mobile - SMS Bitmap OTA
- Spécification du type de message mobile - SMS Logo opérateur, XML
- Spécification du type de message mobile - SMS Logo opérateur, binaire
- Spécification du type de message mobile - SMS Sonnerie
- Spécification du type de message mobile - SMS WAP Push
- Spécification du type de message mobile - SMS binaire XML
- Spécification du type de message mobile - SMS VCard
- Spécification du type de message mobile - SMS VCalendar
- Introduction à l'indication de message SMS
- Spécification du type de message mobile - Lien de page web, SMS
- Message multimédia MMS
- Spécification du type de message mobile - SMS Paramètres du navigateur OTA
- Spécification du type de message mobile - SMS Paramètres SyncML OTA
- Spécification du type de message mobile
- Comment envoyer un message USSD
- Spécification du type de message mobile - SMS WAP Push SL
- Spécification du type de message mobile - Message image