Skip to content

Commit e6888d1

Browse files
committed
Mail layout charset specification fixed
1 parent b946b99 commit e6888d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mail/layouts/html.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33

44
/**
55
* @var \yii\web\View $this
6-
* @var \yii\mail\BaseMessage $content
6+
* @var \yii\mail\MessageInterface $message
7+
* @var string $content
78
*/
89
?>
910
<?php $this->beginPage() ?>
1011
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1112
<html xmlns="http://www.w3.org/1999/xhtml">
1213
<head>
13-
<meta http-equiv="Content-Type" content="text/html; charset=<?= Yii::$app->charset ?>" />
14+
<meta http-equiv="Content-Type" content="text/html; charset=<?= $message->getCharset() ?>" />
1415
<title><?= Html::encode($this->title) ?></title>
1516
<?php $this->head() ?>
1617
</head>

0 commit comments

Comments
 (0)