Skip to content

Commit 4db10c2

Browse files
Merge pull request #381 from ds-wizard/feature/email-change
feat(mailer): Add emailChange mail template
2 parents fec348d + 6c1a2e5 commit 4db10c2

4 files changed

Lines changed: 125 additions & 0 deletions

File tree

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{% extends '_common/layout.html.j2' %}
2+
3+
{%- set userFirstName = ctx.userFirstName -%}
4+
5+
{% block body %}
6+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="dswTextBlock" style="min-width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
7+
<tbody class="dswTextBlockOuter">
8+
<tr>
9+
<td valign="top" class="dswTextBlockInner" style="padding-top: 0px; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
10+
<!--[if mso]>
11+
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
12+
<tr>
13+
<![endif]-->
14+
<!--[if mso]>
15+
<td valign="top" width="600" style="width:600px;">
16+
<![endif]-->
17+
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width: 100%; min-width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" width="100%" class="dswTextContentContainer">
18+
<tbody>
19+
<tr>
20+
<td valign="top" class="dswTextContent" style="padding-top: 0; padding-right: 18px; padding-bottom: 9px; padding-left: 18px; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; word-break: break-word; color: #757575; font-family: Helvetica; font-size: 16px; line-height: 150%; text-align: left;">
21+
<p dir="ltr"
22+
style="margin: 10px 0; padding: 0; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #212529; font-family: Helvetica; font-size: 14px; line-height: 150%; text-align: left;">
23+
{% trans %}Hello {{ userFirstName }}{% endtrans %},<br><br>
24+
{% trans %}You recently requested to change the email address associated with your DSW account.{% endtrans %}<br><br>
25+
{% trans %}To confirm that this email address is correct, please click on the button below.{% endtrans %}
26+
</p>
27+
</td>
28+
</tr>
29+
</tbody>
30+
</table>
31+
<!--[if mso]>
32+
</td>
33+
<![endif]-->
34+
<!--[if mso]>
35+
</tr>
36+
</table>
37+
<![endif]-->
38+
</td>
39+
</tr>
40+
</tbody>
41+
</table>
42+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="dswButtonBlock" style="min-width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
43+
<tbody class="dswButtonBlockOuter">
44+
<tr>
45+
<td style="padding-top: 0; padding-right: 18px; padding-bottom: 18px; padding-left: 18px; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" valign="top" align="center" class="dswButtonBlockInner">
46+
<table border="0" cellpadding="0" cellspacing="0" class="dswButtonContentContainer" style="border-collapse: separate !important; border: 1px none; border-radius: 2px; background-color: #F15A24; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
47+
<tbody>
48+
<tr>
49+
<td align="center" valign="middle" class="dswButtonContent" style="font-family: Helvetica; font-size: 18px; mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
50+
<a class="dswButton " title="{% trans %}Verify your email{% endtrans %}" href="{{ ctx.clientUrl }}/email-verification/{{ ctx.hash }}" target="_blank" style="font-weight: bold; border: 18px solid #f15a24; border-radius: 2px; letter-spacing: -0.5px; line-height: 100%; text-align: center; text-decoration: none; color: #FFFFFF; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; display: block;">{% trans %}Verify your email{% endtrans %}</a>
51+
</td>
52+
</tr>
53+
</tbody>
54+
</table>
55+
</td>
56+
</tr>
57+
</tbody>
58+
</table>
59+
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="dswTextBlock" style="min-width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
60+
<tbody class="dswTextBlockOuter">
61+
<tr>
62+
<td valign="top" class="dswTextBlockInner" style="padding-top: 9px; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
63+
<!--[if mso]>
64+
<table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;">
65+
<tr>
66+
<![endif]-->
67+
<!--[if mso]>
68+
<td valign="top" width="600" style="width:600px;">
69+
<![endif]-->
70+
<table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width: 100%; min-width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;" width="100%" class="dswTextContentContainer">
71+
<tbody>
72+
<tr>
73+
<td valign="top" class="dswTextContent" style="padding: 0px 18px 9px; line-height: 150%; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; word-break: break-word; color: #212529; font-family: Helvetica; font-size: 16px; text-align: left;">
74+
<p dir="ltr" style="line-height: 150%; margin: 10px 0; padding: 0; mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #212529; font-family: Helvetica; font-size: 14px; text-align: left;">
75+
{% trans %}In case you did not request this change, you can safely ignore this email.{% endtrans %}<br><br>
76+
{% if ctx.supportEmail %}
77+
{% trans %}If any problem occurs contact us via{% endtrans %} <a href="mailto:{{ ctx.supportEmail }}" style="mso-line-height-rule: exactly; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #007C89; font-weight: normal; text-decoration: underline;">{{ ctx.supportEmail }}</a>.<br><br>
78+
{% endif %}
79+
{% trans %}Thank you for using DSW!{% endtrans %}<br><br>
80+
{% if ctx.appTitle %}<strong>{{ ctx.appTitle }}</strong> {% trans %}team{% endtrans %}{% endif %}
81+
</p>
82+
</td>
83+
</tr>
84+
</tbody>
85+
</table>
86+
<!--[if mso]>
87+
</td>
88+
<![endif]-->
89+
<!--[if mso]>
90+
</tr>
91+
</table>
92+
<![endif]-->
93+
</td>
94+
</tr>
95+
</tbody>
96+
</table>
97+
{% endblock %}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"id": "wizard:emailChange",
3+
"subject": "Email Address Confirmation",
4+
"subjectPrefix": true,
5+
"defaultSenderName": "DSW",
6+
"parts": [
7+
{
8+
"type": "html",
9+
"file": "message.html.j2"
10+
},
11+
{
12+
"type": "plain",
13+
"file": "message.txt.j2"
14+
}
15+
]
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{%- set userFirstName = ctx.userFirstName -%}
2+
3+
{% trans %}Hello {{ userFirstName }}{% endtrans %},
4+
5+
{% trans %}You recently requested to change the email address associated with your DSW account.{% endtrans %}
6+
7+
{% trans %}To confirm that this email address is correct, please proceed here{% endtrans %}: {{ ctx.clientUrl }}/email-verification/{{ ctx.hash }}
8+
9+
{% trans %}If you did not request this change, you can safely ignore this email.{% endtrans %}
10+
11+
{% include '_common/footer.txt.j2' %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% trans %}Email Address Confirmation{% endtrans %}

0 commit comments

Comments
 (0)