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
- Bevezetés a mobil üzenettípusokba
- Mobil üzenettípus specifikáció - OTA bitmap SMS
- Mobil üzenettípus specifikáció - Operátor logó SMS, XML
- Mobil üzenettípus specifikáció - Operátor logó SMS, bináris
- Mobil üzenettípus specifikáció - Csengőhang SMS
- Mobil üzenettípus specifikáció - WAP Push SMS
- Mobil üzenettípus specifikáció - Bináris SMS XML
- Mobil üzenettípus specifikáció - VCard SMS
- Mobil üzenettípus specifikáció - VCalendar SMS
- Bevezetés az SMS üzenet jelzésbe
- Mobil üzenettípus specifikáció - Weboldal link, SMS
- Multimédiás üzenet MMS
- Mobil üzenettípus specifikáció - OTA böngésző beállítások SMS
- Mobil üzenettípus specifikáció - OTA SyncML beállítások SMS
- Mobil üzenettípus specifikáció
- Hogyan küldjünk USSD üzenetet
- Mobil üzenettípus specifikáció - WAP Push SL SMS
- Mobil üzenettípus specifikáció - Képüzenet