EmbedImage()

Syntax

Function EmbedImage(ByVal multimediaComponentID As String, Optional
ByVal attributes As String, Optional ByVal publicationTargetID
As String) As String

Parameters

ParameterDescription
multimediaComponentID

The URI of the Multimedia Component that contains the image file you want to embed. attributes Use this optional parameter to pass custom attributes to the <img> tag.

publicationTargetID

The URI of the Publication Target. The default value of this parameter is TCM_PUBLICATION_TARGET_URI. If you are previewing, you can also set this parameter to tcm:0-0-0. In that case, the image file is stored on disk so you can see it while previewing the e-mail.

outputImageThe default value true outputs the image using the standard <img> tag, false will only return the source of the image allowing you to specify your own mark-up.

Description

Use this method to embed an image file in your e-mail message. The image file must be in a Multimedia Component. The method returns the attachment in an intermediate format that the Mailer service can use to create an actual embedded image.