Files
speckle-server/packages/server/assets/emails/templates/speckleBasicEmailTemplate.mjml.ejs
T
Gergő Jedlicska c4454c2ede refactor(server email templates): use the mjml ejs rendering for all emails (#1448)
* refactor(server email templates): use the mjml ejs rendering for all emails

* fix(server access request): await the server info pls
2023-03-13 15:07:13 +01:00

44 lines
1.0 KiB
Plaintext

<mjml>
<mj-include path="./components/head.mjml" />
<mj-body>
<!-- Header -->
<mj-include path="./components/headerLogo.mjml" />
<!-- Body -->
<mj-section>
<mj-column>
<%- params.body.mjml -%>
</mj-column>
</mj-section>
<% if (params.cta) { %>
<mj-include path="./components/ctaButton.mjml" />
<% } %>
<!-- Body - End -->
<% if (params.bodyEnd?.mjml?.length) { %>
<mj-section>
<mj-column>
<%- params.bodyEnd?.mjml -%>
</mj-column>
</mj-section>
<% } %>
<% if (params.user?.email) { %>
<mj-section>
<mj-column>
<mj-text font-size="12px" color="#999" align="center">
<p>
If you don't want to receive these emails, update your preferences
<a href="<%- params.serverInfo.canonicalUrl -%>/profile/<%- params.user.id -%>">here</a>
.
</p>
</mj-text>
</mj-column>
</mj-section>
<% } %>
<mj-include path="./components/footer.mjml" />
</mj-body>
</mjml>