Embedding images
Images can only be embedded in a mailing using placeholders. The respective placeholders require Base64-encoded images in the source system and the embeddedimage data type in the event XML.
Base64 encoding
An image must be available in Base64-encoded form in the source system to allow it to be embedded in a mailing.
For information on Base64 encoding, visit https://www.rfc-editor.org/info/rfc4648
Configuring the event XML
A placeholder of the embeddedimage data type must be created in the event XML to allow an image to be embedded in a mailing. Detailed information can be found in the section Event data.
Example
Event-XML The following example shows an excerpt from some event XML. Mailings with online tickets (QR codes) in the form of embedded images are set up via this event. The event XML contains a Ticket placeholder group. The QRCode placeholder is embedded in this placeholder group.
Placeholder The following placeholder is available in the mailing based on this placeholder group: ${image.embed(Ticket.QRCode)}
<event>
...
...
<phgroup>
<id>Ticket</id>
<translation language="en">Ticket</translation>
<translation language="de">Ticket</translation>
<placeholder>
<id>QRCode</id>
<translation language="en">QR Code</translation>
<translation language="de">QR-Code</translation>
<datatype-embeddedimage/>
</placeholder>
</phgroup>
...
...
</event>