do not use $_ENV vars for mail template
This commit is contained in:
parent
6cb90d5ea2
commit
fc2de8e1ab
@ -29,13 +29,6 @@ class Mail
|
||||
{
|
||||
$this->body = file_get_contents(ROOT . '/mail/' . $template . '.html');
|
||||
|
||||
$baseParameters = [
|
||||
'APP_NAME' => $_ENV['APP_NAME'],
|
||||
'BASE_URL' => $_ENV['APP_URL'],
|
||||
];
|
||||
|
||||
$params = array_merge($baseParameters, $params);
|
||||
|
||||
foreach ($params as $key => $param) {
|
||||
$this->body = str_replace('{{' . $key . '}}', $param, $this->body);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user