ContentType is a String property that specifies the MIME media type for the message. The purpose of ContentType is to describe the data contained in the body to allow a user agent to determine how to present the data. ContentType contains information about the media type. subtype, and auxillary information in attribute=value notation. SOme common values for the media type and subtype include:
- text/plain
- text/html
- text/xml
- text/enhanced
- image/jpeg
- image/gif
- audio/basic
- audio/au
- video/mpeg
- application/octet-stream
- application/postscript
- application/ms-word
- application/ms-excel
- application/rtf
- multipart/mixed
- multipart/alternative
- multipart/parallel
- multipart/related
- message/rfc822
- message/external-body
Use ContentTransferEncoding to identify the encoding scheme for the message.