This commit is contained in:
rsgrinko committed 2021-12-07 14:09:27 +03:00
1 parent ffaf1839ba
commit 354a539b91
1 file changed
+1 -1
+1 -1
View File
@@ -281,7 +281,7 @@ class CMail
// Тема письма
$subject = (empty($this->subject)) ? 'No subject' : $this->subject;
$body = file_get_contenst(__DIR__.'/../../assets/mail_template/'.$template.'.html');
$body = file_get_contents(__DIR__.'/../../assets/mail_template/'.$template.'.html');
foreach($this->arrTemplate as $templateKey => $templateValue){
$body = str_replace('{'.$templateKey.'}', $templateValue, $body);
}