Re: Email Handling and Manipulation Question 10

10 views
Skip to first unread message

Dan Kelly

unread,
Jul 18, 2011, 9:40:24 AM7/18/11
to Zend Certification Study Group
Which MIME content type would be used to send an e-mail that contains
HTML, rich text,
and plain text versions of the same message so that the e-mail client
will choose the most
appropriate version?

A. multipart/mixed
B. multipart/alternative
C. multipart/default
D. multipart/related
E. Not possible using content-types

Seal Trip

unread,
Jul 18, 2011, 6:25:42 PM7/18/11
to zend-certificat...@googlegroups.com
B. multipart/alternative

Dan Kelly

unread,
Jul 19, 2011, 1:16:04 PM7/19/11
to Zend Certification Study Group
The correct answer is B. This special MIME content type is used to
define a segment which
contains sub-segments representing multiple versions of the same
content. For instance, a
multipart/alternative segment may have two segments within it of types
text/plain and
text/html. It is then left to the e-mail client to choose the most
appropriate format and display
that to the user. As a general rule of thumb, it is always a good idea
to put the easiest to read
(i.e. plain text) versions first in the event that the mail is read
from a non MIME-compatible
e-mail client.
Reply all
Reply to author
Forward
0 new messages