Skip to content

Commit 88fdebb

Browse files
committed
Email Template
1 parent 7312da8 commit 88fdebb

12 files changed

+188
-116
lines changed

Model/Customer/Notifier/MailSender.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ final class MailSender extends AbstractMailSender implements SenderInterface
2323
/**
2424
* @var LoggerInterface
2525
*/
26-
private $logger;
26+
private LoggerInterface $logger;
2727

2828
/**
2929
* @var View
3030
*/
31-
private $customerViewHelper;
31+
private View $customerViewHelper;
3232

3333
/**
3434
* @var StoreManagerInterface
@@ -50,7 +50,8 @@ public function __construct(
5050
}
5151

5252
/**
53-
* @inheritdoc
53+
* @param CustomerInterface $customer
54+
* @return void
5455
* @throws LocalizedException
5556
* @throws MailException
5657
* @throws NoSuchEntityException

Model/Order/Notifier/MailSender.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ final class MailSender extends AbstractMailSender implements SenderInterface
2121
/**
2222
* @var LoggerInterface
2323
*/
24-
private $logger;
24+
private LoggerInterface $logger;
2525

26+
/**
27+
* @var StoreManagerInterface
28+
*/
2629
private StoreManagerInterface $storeManager;
2730

2831
public function __construct(

view/frontend/email/erase_canceled.html

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,21 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
</p>
20-
21-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
22-
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
</td>
23+
</tr>
24+
<tr class="help-info">
25+
<td>
26+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
27+
</td>
28+
</tr>
29+
</table>
2330
{{template config_path="design/email/footer_template"}}

view/frontend/email/erase_canceled_guest.html

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
</p>
20-
21-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
22-
23-
{{template config_path="design/email/footer_template"}}
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
</td>
23+
</tr>
24+
<tr class="help-info">
25+
<td>
26+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
27+
</td>
28+
</tr>
29+
</table>

view/frontend/email/erase_pending.html

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have received a request to erase the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
{{trans 'You can cancel the erase whitin %delay hours by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
20-
</p>
21-
22-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
23-
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
<p>{{trans 'You can cancel the erase whitin %delay hours by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
23+
</td>
24+
</tr>
25+
<tr class="help-info">
26+
<td>
27+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
28+
</td>
29+
</tr>
30+
</table>
2431
{{template config_path="design/email/footer_template"}}

view/frontend/email/erase_pending_guest.html

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have received a request to erase the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
{{trans 'You can cancel the erase whitin %delay hours by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}
20-
</p>
21-
22-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
23-
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
<p>{{trans 'You can cancel the erase whitin %delay hours by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
23+
</td>
24+
</tr>
25+
<tr class="help-info">
26+
<td>
27+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
28+
</td>
29+
</tr>
30+
</table>
2431
{{template config_path="design/email/footer_template"}}

view/frontend/email/erase_succeeded.html

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have successfully erased the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
</p>
20-
21-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
22-
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
<p>{{trans 'You can cancel the erase whitin %delay hours by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
23+
</td>
24+
</tr>
25+
<tr class="help-info">
26+
<td>
27+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
28+
</td>
29+
</tr>
30+
</table>
2331
{{template config_path="design/email/footer_template"}}

view/frontend/email/erase_succeeded_guest.html

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have successfully erased the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
</p>
20-
21-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
22-
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
<p>{{trans 'You can cancel the erase whitin %delay hours by <a href="%account_url">logging into your account</a>.' account_url=$this.getUrl($store,'customer/account/',[_nosid:1]) |raw}}</p>
23+
</td>
24+
</tr>
25+
<tr class="help-info">
26+
<td>
27+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
28+
</td>
29+
</tr>
30+
</table>
2331
{{template config_path="design/email/footer_template"}}

view/frontend/email/export_pending.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have received a request to export the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
</p>
20-
21-
<p>{{trans "We will notify you when the export will be ready. The action will be available in your account."}}</p>
22-
23-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
24-
25-
{{template config_path="design/email/footer_template"}}
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
<p>{{trans "We will notify you when the export will be ready. The action will be available in your account."}}</p>
23+
</td>
24+
</tr>
25+
<tr class="help-info">
26+
<td>
27+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
28+
</td>
29+
</tr>
30+
</table>
31+
{{template config_path="design/email/footer_template"}}

view/frontend/email/export_pending_guest.html

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@
1010
} @-->
1111

1212
{{template config_path="design/email/header_template"}}
13-
14-
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
15-
16-
<p>
17-
{{trans "We have received a request to export the information associated with your account at %store_name." store_name=$store.getFrontendName()}}
18-
{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.
19-
</p>
20-
21-
<p>{{trans "We will notify you when the export will be ready. The action will be available in your account."}}</p>
22-
23-
<p>{{trans "Thanks,<br>%store_name" store_name=$store.getFrontendName() |raw}}</p>
24-
13+
<table border="0" cellspacing="0" width="100%" cellpadding="0">
14+
<tr class="email-intro">
15+
<td>
16+
<p class="greeting">{{trans "%name," name=$customer_data.customer_name}}</p>
17+
</td>
18+
</tr>
19+
<tr class="email-summary">
20+
<td>
21+
<p>{{trans "We have received a request to cancel the erasure of the information associated with your account at %store_name." store_name=$store.getFrontendName()}}</p>
22+
<p>{{trans "We will notify you when the export will be ready. The action will be available in your account."}}</p>
23+
</td>
24+
</tr>
25+
<tr class="help-info">
26+
<td>
27+
<p>{{trans 'If you have not authorized this action, please contact us immediately at <a href="mailto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.</p>
28+
</td>
29+
</tr>
30+
</table>
2531
{{template config_path="design/email/footer_template"}}

0 commit comments

Comments
 (0)