Skip to content

Commit 9beb464

Browse files
author
Oleksii Korshenko
committed
MAGETWO-69668: [#7291] Change the default contact form email template to HTML #9786
- fixed incorrect config scope
1 parent 1e251a6 commit 9beb464

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

app/code/Magento/Contact/Model/Mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function send($replyTo, array $variables)
5858
->setTemplateIdentifier($this->contactsConfig->emailTemplate())
5959
->setTemplateOptions(
6060
[
61-
'area' => 'adminhtml',
61+
'area' => 'frontend',
6262
'store' => \Magento\Store\Model\Store::DEFAULT_STORE_ID,
6363
]
6464
)

app/code/Magento/Contact/view/frontend/email/submitted_form.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@
1212
"var data.telephone":"Sender Telephone"
1313
} @-->
1414

15-
{{trans "Name: %name" name=$data.name}}
16-
{{trans "Email: %email" email=$data.email}}
17-
{{trans "Phone Number: %telephone" telephone=$data.telephone}}
15+
{{template config_path="design/email/header_template"}}
1816

19-
{{trans "Comment: %comment" comment=$data.comment}}
17+
<ul>
18+
<li>{{trans "Name: %name" name=$data.name}}</li>
19+
<li>{{trans "Email: %email" email=$data.email}}</li>
20+
<li>{{trans "Phone Number: %telephone" telephone=$data.telephone}}</li>
21+
<li>{{trans "Comment: %comment" comment=$data.comment}}</li>
22+
</ul>
23+
24+
{{template config_path="design/email/footer_template"}}

0 commit comments

Comments
 (0)