Skip to content

Remove external links from mails #612

@phavekes

Description

@phavekes

Use inline images (or attachments) for all mail components such as images.

The current institution images are linked from static.surfconext.nl in SVG format.
Some mail providers (Gmail) do not display SVG files, so the image should be fetched, converted, and included.

There are three places in the email where there is a logo:

  • At the top of the email
  • In the footer
  • In a button if it is eduID

The logo at the top of the email is an institution logo. If the institution is SURF, you get a SURF logo; otherwise, you get the logo of the institution.

The institution SURF logo, SURF footer logo, and eduID button are already done.
We still need to add institutionLogoUrl as an inline image.

Tips:
The institution logo comes from Manage and can be set in the metadata fields: Search → IdP → Dummy IdP → Metadata → data.metaDataFields["logo:0:url"]

The logos need to be square (48px × 48px). On test2, this is not always the case.
You can change it to use this one:

  • https://static.surfconext.nl/logos/org/ccadb9d1-0911-e511-80d0-005056956c1a.png

Or look here:

  • https://support.surfconext.nl/stats/idplist.html

Notes:

We have try use base64 with svg's/png but this did't work in gmail. check this commit for more information Remove not used base64 image code 33400a4f021d8847d4e301ae23767a0c15418249

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions