Merge pull request #639 from Hexastack/fix/mailing

fix: nest mailing + minor css tweaks
This commit is contained in:
Med Marrouchi
2025-01-28 19:44:55 +01:00
committed by GitHub
6 changed files with 41 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ const i18nOptions: I18nOptions = {
}),
template: {
adapter: new MjmlAdapter('ejs', { inlineCssEnabled: false }),
dir: './src/templates',
dir: path.join(process.cwd(), 'dist', 'templates'),
options: {
context: {
appName: config.parameters.appName,

View File

@@ -2,8 +2,8 @@
<mj-body>
<mj-section>
<mj-column>
<mj-image width="100px" src="/assets/logo.png"></mj-image>
<mj-divider border-color="#048BA8"></mj-divider>
<mj-image width="186px" src="https://hexabot.ai/assets/images/logo.png"></mj-image>
<mj-divider border-color="#000"></mj-divider>
<mj-text font-size="16px" color="#000" font-family="helvetica"
><%= t('hi') %> <%= first_name %>,</mj-text
>
@@ -17,7 +17,7 @@
<mj-button
href="<%= this.appUrl %>/login/<%= token %>"
font-size="16px"
background-color="#F45E43"
background-color="#000"
><%= t('confirm') %></mj-button
>
</mj-column>

View File

@@ -2,8 +2,8 @@
<mj-body>
<mj-section>
<mj-column>
<mj-image width="100px" src="/assets/logo.png"></mj-image>
<mj-divider border-color="#048BA8"></mj-divider>
<mj-image width="186px" src="https://hexabot.ai/assets/images/logo.png"></mj-image>
<mj-divider border-color="#000"></mj-divider>
<mj-text font-size="16px" color="#000" font-family="helvetica">
<%= t('welcome') %>,
</mj-text>
@@ -19,7 +19,7 @@
<mj-button
href="<%= this.appUrl %>/register/<%= token %>"
font-size="16px"
background-color="#F45E43"
background-color="#000"
><%= t('join') %></mj-button
>
</mj-column>

View File

@@ -2,8 +2,8 @@
<mj-body>
<mj-section>
<mj-column>
<mj-image width="100px" src="/assets/logo.png"></mj-image>
<mj-divider border-color="#048BA8"></mj-divider>
<mj-image width="186px" src="https://hexabot.ai/assets/images/logo.png"></mj-image>
<mj-divider border-color="#000"></mj-divider>
<mj-text font-size="16px" color="#000" font-family="helvetica"
><%= t('hi') %> <%= first_name %>,</mj-text
>
@@ -16,7 +16,7 @@
<mj-button
href="<%= this.appUrl %>/reset/<%= token %>"
font-size="16px"
background-color="#F45E43"
background-color="#000"
><%= t('reset') %></mj-button
>
</mj-column>