Here is a snippet of my systemTemplate:
HTML Code:
<img src="?entryPoint=attachment&id=64b5b5e0a35728d31" style="width: 100px;">
PHP Code:
$body = $htmlizer->render(
$entity,
$bodyTpl,
'',
$data,
false, //skip links
true //skip inline attachment handling IMPORTANT
);
If you do not skip inline attachment handling it will replace the entryPoint bit with the absolute file path of the attachment which causes the problem. If you simply 'skip' this by setting the parameter to true, ESPO will appropriately embed the image in the body of the email by base encoding it based on the mime type.
This happens in
and
Where it looks for
PHP Code:
?entryPoint=attachment&id={$id}
Leave a comment: