Customize Emails
Cryptr allows you to customize your emails in mjml format, providing a template 100% designed by you with some variables you can set.
If you are customizing an email theme, we advise you to use the same design as for your login pages to keep consistency.
If you have difficulties in creating your own theme. You can contact us and we will help you with your design and bring your integration to life
What is MJML?
MJML is an open-source markup language for designing responsive emails. It was created by Mailjet to simplify email code with a semantic syntax that makes it easier to understand.
To know more about mjml, we advise you to read the documentation:
https://documentation.mjml.io/
Template variables
You can customize the email subject and locale for each email template.
The content is currently not editable, but some variables can be placed as you wish in the mjml file
Below is the list of each templates:
magic_link
Key | Text |
---|---|
1 user_email | elise@proton.me> |
2 expiration_time | 5 minutes |
3 user_agent_family | Chrome |
3 user_agent_version_major | 111 |
3 user_agent_version_minor | 0 |
3 user_agent_os_family | Mac OS X |
3 user_agent_os_version_major | 10 |
3 user_agent_os_version_minor | 15 |
3 time | 16:04 |
3 date | 27/03/23 |
4 magic_link_url | http://cryptr-magic-link.co/kamae/123546789/abc |
password
Key | Text |
---|---|
1 user_email | elise@proton.me> |
2 expiration_time | 5 minutes |
3 user_agent_family | Chrome |
3 user_agent_version_major | 111 |
3 user_agent_version_minor | 0 |
3 user_agent_os_family | Mac OS X |
3 user_agent_os_version_major | 10 |
3 user_agent_os_version_minor | 15 |
3 time | 16:04 |
3 date | 27/03/23 |
4 magic_link_url | http://cryptr-magic-link.co/kamae/123546789/abc |
sso_onboarding_template
Key | Text |
---|---|
1 organization_name | Lagardère |
1 master_tenant_name | Kamaé |
2 expiration_time | une semaine |
3 magic_link_url | http://cryptr-it-admin-onboarding.co/kamae/123546789/abc |
Content variables
Data is stored in a variable such as magic_link_url
, it is displayed between double braces {{ }}
Code
<mj-text css-class="link-to-copy" color="#9EA4AF" font-size="14px" line-height="16px" padding-top="0">
Ou copier-coller le lien ci-dessous dans votre navigateur:
<a href="{{magic_link_url}}" target="_blank" class="link">{{magic_link_url}}</a>
</mj-text>
Output
<div style="font-size:14px;font-weight:400;line-height:16px;text-align:left;color:#9EA4AF;">
Ou copier-coller le lien ci-dessous dans votre navigateur:
<a href="http://cryptr-it-admin-onboarding.co/kamae/123546789/abc" target="_blank" class="link">
http://cryptr-it-admin-onboarding.co/kamae/123546789/abc
</a>
</div>
Email templates API
Learn how to integrate your mjml templates to edit it with the
If you create a theme using the default theme as a starting point. We recommend that you submit a slightly different version that matches your brand's visual identity in order to have added value in your login