This means you can use a
standard email parsing class to extract the attachments.
Many gateways can also receive MMS messages on your behalf. The user will send
the MMS message to a particular number (could be a short code too), and the gateway
will process the MMS message and send it to you as an email or POST it to a URL you
specify. If your gateway provides such a feature, you can go ahead and use that.
If you are going to get the MMS message via email (either directly or via the
gateway), you can use standard POP libraries to fetch the message along with the
attachments. There are many such libraries available, so we won't cover them here.
Let's look at how we can decode an actual MMS message for now. We will also not
worry about getting the MMS message itself. We are assuming that's taken care of.
Openwave and Nokia have good sets of libraries in Java and C++ to decode MMS.
There are other sources too. When it comes to PHP, there aren't really many options.
Jonathan Heyman's MMSDecoder (http://heyman.info/mmsdecoder.php) is a
very good library to decode MMS messages. His code extends the work of Stefan
Hellkvist's MMSLib code (http://hellkvist.
Pages:
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181