Closed spl1nes closed 7 months ago
Instead of doing something like this:
$mail->body = \str_replace( [ '{new_password}', '{user_name}', ], [ $pass, $account->login, ], $mailL11n->body ); $mail->bodyAlt = \str_replace( [ '{new_password}', '{user_name}', ], [ $pass, $account->login, ], $mailL11n->bodyAlt );
An array key=>value should be stored in the email model which then gets parsed in the send call $handler->send($mail);.
$handler->send($mail);
Instead of doing something like this:
An array key=>value should be stored in the email model which then gets parsed in the send call
$handler->send($mail);
.