Skip to content

Commit c830b4d

Browse files
committed
♻️(email) replace base64 image with a link
The emails were too big, gmail by example was not able to display them correctly. It was caused by base64 image, so they are replaced with a link to the image. We fixed the link to the website, it will improve the score of the email.
1 parent a0fe98e commit c830b4d

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed
-40.1 KB
Binary file not shown.
14.9 KB
Loading

src/mail/mjml/invitation.mjml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<mj-include path="./partial/header.mjml" />
33

44
<mj-body mj-class="bg--blue-100">
5-
<mj-wrapper css-class="wrapper" padding="0 40px 40px 40px">
6-
<mj-section background-url="{% base64_static 'images/mail-header-background.png' %}" background-size="cover" background-repeat="no-repeat" background-position="0 -30px">
5+
<mj-wrapper css-class="wrapper" padding="0 25px 0px 25px">
6+
<mj-section background-url="{{site.domain}}/assets/mail-header-background.png" background-size="cover" background-repeat="no-repeat" background-position="0 -30px">
77
<mj-column>
8-
<mj-image align="center" src="{% base64_static 'images/logo-suite-numerique.png' %}" width="250px" align="left" alt="{%trans 'La Suite Numérique' %}" />
8+
<mj-image align="center" src="{{site.domain}}/assets/logo-suite-numerique.png" width="250px" align="left" alt="{%trans 'La Suite Numérique' %}" />
99
</mj-column>
1010
</mj-section>
1111
<mj-section mj-class="bg--white-100" padding="30px 20px 60px 20px">
@@ -30,7 +30,7 @@
3030
<li>{% trans "Invite members of your community to your document in just a few clicks."%}</li>
3131
</ul>
3232
</mj-text>
33-
<mj-button href="//{{site.domain}}/docs/{{document_id}}/" background-color="#000091" color="white" padding-bottom="30px">
33+
<mj-button href="{{site.domain}}/docs/{{document_id}}/" background-color="#000091" color="white" padding-bottom="30px">
3434
{% trans "Visit Docs"%}
3535
</mj-button>
3636
<mj-text>{% trans "We are confident that Docs will help you increase efficiency and productivity while strengthening the bond among members." %}</mj-text>
@@ -46,7 +46,5 @@
4646
</mj-section>
4747
</mj-wrapper>
4848
</mj-body>
49-
50-
<mj-include path="./partial/footer.mjml" />
5149
</mjml>
5250

0 commit comments

Comments
 (0)