Email Handling and Manipulation Question 5

7 views
Skip to first unread message

Dan Kelly

unread,
Jul 14, 2011, 10:59:13 AM7/14/11
to Zend Certification Study Group
When sending HTML e-mail using MIME, it is often desirable to use
classic HTML tags
such as <IMG> to embed images within your text. Which of the following
methods are
acceptable for doing so? (Choose 2)


A. Providing the content of the image file directly in-line within an
HTML <IMG> tag in
the mail that the e-mail client will automatically render
B. Providing a URL in the SRC attribute of the <IMG> tag pointing to
the image on a
independent server where the image is hosted
C. Embedding the image directly in the e-mail as a separate MIME
content block and
referencing it within the SRC attribute of the <IMG> tag by its
assigned Content ID
D. Adding the images directly as file attachments and reference them
within the SRC
attribute of the <IMG> tag by filename
E. There is only one valid answer listed above

Ramsez Stamper

unread,
Jul 14, 2011, 11:14:31 AM7/14/11
to zend-certificat...@googlegroups.com
I think it's B and D, i'm sure about B, mostly sure about D.

~Ramsez
--
Ramsez A. V. Stamper | Project Manager
Innovative Care Solutions | www.innovcare.com
o. 770-300-0244 | f. 770-447-4011
5655 Peachtree Parkway Norcross, Ga 30092
Twitter: @crassiusneo

Alex Stetsenko

unread,
Jul 14, 2011, 1:36:02 PM7/14/11
to zend-certificat...@googlegroups.com
E is funny. Which one?! :-)
B definitely works but I think another one is C.

Seal Trip

unread,
Jul 14, 2011, 3:05:18 PM7/14/11
to zend-certificat...@googlegroups.com
B most def - that's how I do it. And C makes more sense to me than D.

I choose B and C

Dan Kelly

unread,
Jul 18, 2011, 9:37:13 AM7/18/11
to Zend Certification Study Group
There are indeed two answers above that are valid for including
elements, such as images,
within your HTML document. The fastest method is to simply reference a
remote image by
specifying any valid URL for the SRC attribute of the tag. However,
images and other
component content can also be embedded within the MIME e-mail itself
as a MIME content
block. These content blocks are then assigned a content ID, which can
be referenced from
the SRC attribute using the cid: resource identifier followed by the
assigned content ID. This
means that Answers B and C are correct.
Reply all
Reply to author
Forward
0 new messages