Download Scriptmaster.
Create the following Function:
Function Name:ContainerToBase64
Parameter:fieldName
Function:
return new sun.misc.BASE64Encoder().encode( fmpro.getContainerStream( fieldName ).getBytes() );
Then use this function to create a Base64 representation from your Container Field Image. It will look something like this:
/9j/4QZKRXhpZgAATU0AKgAAAAgADAEAAAMAAAABAJIAAAEBAAMAAAABANkAAAECAAMAAAADAAAA
ngEGAAMAAAABAAIAAA...
Replace the "¶” characters with ""
Parse the email and replace every image with its Container field representation
Replace:
<img src="cid:F119C926-4C71-4558-8005-83E1BF95D671">
with:
<img src="data:image/png;base64,/9j/4QZKRXhpZgAATU0AKgAAAAgADAEAAA...">
and adapt the image MIME type from image/png to image/jpeg for a jpeg image