You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2015/03/18 10:53:39 UTC

[jira] [Resolved] (ISIS-1099) Make it possible to use images loaded from the classpath in email templates

     [ https://issues.apache.org/jira/browse/ISIS-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved ISIS-1099.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

To use an image in an email template:
- put it in the classpath of the application (e.g. src/main/resources/images/some.png)
- reference it in the HTML template with:
{code}
<img src="/images/some.png"/>
{code}

Apache Commons Email will automatically embed it in the MimeMessage for you.

> Make it possible to use images loaded from the classpath in email templates
> ---------------------------------------------------------------------------
>
>                 Key: ISIS-1099
>                 URL: https://issues.apache.org/jira/browse/ISIS-1099
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core, Core: Viewer: Wicket
>    Affects Versions: core-1.8.0
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 1.9.0
>
>
> To be able to use images in email templates EmailServiceDefault should use 
> - ImageHtmlEmail instead of HtmlEmail
> - a DataSourceResolver



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)