Java Reference
In-Depth Information
The Anatomy of a Multipart Message
Figure 11-4 shows what a multipart message looks like conceptually.
Figure 11-4. Anatomy of a multipart message
In Figure 11-4, the multipart message has the usual header and body found in all messages.
However, the body itself contains many separate parts, called message parts. Each message
part has its own header and content.
The type of each body part is specified in its header. Each body part can be of a MIME type
that is supported by the communicating applications.
Working with Multipart Messages
A MultipartMessage is a subinterface of Message . The additional methods on the MultipartMessage
interface deals with the additional features required by MMS messages.
First off, a multipart message differs from an SMS message in that it can have multiple
recipients. Similar to e-mail, you can have multiple recipients for “to”, “cc”, and “bcc” fields.
A message with multiple recipients can be sent to a Multimedia Message Service Center (MMSC) to
be processed. The MMSC can then in turn send the message to all intended recipients.
Managing Addresses
The following methods are available for managing the addresses associated with a multipart
message:
Search WWH ::




Custom Search