compose() public abstract method
Creates a new message instance and optionally composes its body content via view rendering.
public abstract yii\mail\MessageInterface compose ( $view = null, array $params = [] ) | ||
---|---|---|
$view | string|array|null |
The view to be used for rendering the message body. This can be:
|
$params | array |
The parameters (name-value pairs) that will be extracted and made available in the view file. |
return | yii\mail\MessageInterface |
Message instance. |
Please login to continue.