Is there any way to access your parameters within a mail layout when using the
$params = array(
"model" => $model
$message = Yii::$app->mailer->compose([
'html' => $view.'Html',
'text' => $view,
I'd do something similar to how you get breadcrumbs back to the view.
//In your view file, model was passed down via compose as you have it. //this adds model element to the View object's params. $this->params['model'] = $model; //In your layout echo $this->params['model']->attribute;