Image in email template

Hello,

what’s the recommended way to include an image in email template ?

We are using <img src="${url.resourcesPath}/img/some-image.png"/> but the generated url is an absolute path (i.e. /resources/7u4gt/email/…) and doesn’t contain the current domain.

Thanks,
Mattia

Hello Mattia,

depending on the image I would suggest to include the image in base64 encoded form. This way the recipient doesn’t needs to first allow external downloads to view the image.

Best regards,
Florian