[keycloak-dev] Regarding https://issues.jboss.org/browse/KEYCLOAK-8162

vidhyadharan D it.vidhyadharan at gmail.com
Wed Sep 12 04:30:37 EDT 2018


suppose if i move the themes from development  to production, in that case
i need to update the properties each time . where as in template variable
it is automatically calculated.


inline base64  images will suit for web emails, but for outlook it is not
supported , however logo svg will apt for all email clients.

by implementing the *${hostname}/${url.**resourcesPath}* *Custom fonts*
also served from *themes location*.

<style>
.
.
.
@font-face {
font-family: 'Roboto';
src: url('${hostname}${url.resourcesPath}/fonts/Roboto/Roboto-Light.eot');
src: local('Roboto Light'),
local('Roboto-Light'),
url('${hostname}${url.resourcesPath}/fonts/Roboto/Roboto-Light.eot?#iefix')
format('embedded-opentype'),
url('${hostname}${url.resourcesPath}/fonts/Roboto/Roboto-Light.woff2')
format('woff2'),
url('${hostname}${url.resourcesPath}/fonts/Roboto/Roboto-Light.woff') format
('woff'),
url('${hostname}${url.resourcesPath}/fonts/Roboto/Roboto-Light.ttf') format(
'truetype'),
url('${hostname}${url.resourcesPath}/fonts/Roboto/Roboto-Light.svg#Roboto')
format('svg');
font-weight: 300;
font-style: normal;
}
.
.
.

Thanks,
vidhya

On Tue, Sep 11, 2018 at 6:38 PM Stian Thorgersen <sthorger at redhat.com>
wrote:

> I was thinking inline base64 images. I don't have an issue with a PR to
> make the resourceUrl available to emails, do you need it in the template or
> the properties? Having it in the properties is a lot messier.
>
> On Tue, 11 Sep 2018 at 10:08, vidhyadharan D <it.vidhyadharan at gmail.com>
> wrote:
>
>> <img src="${hostname}/${url.resourcesPath}/img/sci-logo.svg" >
>>
>>
>> On Tue, Sep 11, 2018 at 1:37 PM vidhyadharan D <it.vidhyadharan at gmail.com>
>> wrote:
>>
>>> The logo can be sent in the email like below
>>>
>>> <img src="${url.resourcesPath}/img/sci-logo.svg" >
>>>
>>>
>>> On Mon, Sep 10, 2018 at 12:46 PM Stian Thorgersen <sthorger at redhat.com>
>>> wrote:
>>>
>>>> For emails shouldn't images actually be encoded into the email itself
>>>> rather than linked to?
>>>>
>>>> On Sun, 9 Sep 2018 at 19:18, vidhyadharan D <it.vidhyadharan at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Experts,
>>>>>
>>>>> I have been working on keycloak html email. I am in need to embed
>>>>> logo  to
>>>>> the emails i.e. from the *themes/email/resources/img/logo.png *
>>>>>
>>>>>  In the login module there is a way to locate image / favicon via
>>>>> ${url.resourcesPath}
>>>>>
>>>>> However in email module we dont have access to locate the resources..
>>>>>
>>>>> I have achieved by adding custom email template provider. If possible
>>>>> please add these into email module because it is useful for all .
>>>>>
>>>>> or let me know i can provide PR.
>>>>>
>>>>> https://issues.jboss.org/browse/KEYCLOAK-8162
>>>>>
>>>>>
>>>>> Thanks,
>>>>> vidhya
>>>>> _______________________________________________
>>>>> keycloak-dev mailing list
>>>>> keycloak-dev at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>>>>
>>>>


More information about the keycloak-dev mailing list