Using variables for embedded images

Floe supports the embedding of images within the body of the e-mail.  Two steps are required:

  1. Use the Image User-Exit to add the image to the e-mail
  2. Fill a variable to serve as the unique 'Content ID' for the image.

For example, the HTML block may have two embedded images:

1:
2:
3:
<p><img alt="[image]" src="cid:&IMAGE_ID1&" /></p>
<br/>
<p><img alt="[image]" src="cid:&IMAGE_ID2&" /></p>

In the Image User-Exit, add the images to the table, assigned to the variables. ( In this example, IMAGE_ID1 and IMAGE_ID2 )

(See the example for Image User-Exit for more detail)

Then fill the variables in the Email Data User-Exit:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
DATA: ls_variables TYPE /floe/vars_s.

* Content ID for image 1
  ls_variables-var_code = 'IMAGE_ID1'.
  ls_variables-value = '12345'.
  APPEND ls_variables TO ch_variables.

* Content ID for image 2
  ls_variables-var_code = 'IMAGE_ID2'.
  ls_variables-value = '99999'.
  APPEND ls_variables TO ch_variables.