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: a string, which represents the view name or path alias for rendering the HTML body of the email. In this case, the text body will be generated by applying strip_tags() to the HTML body. an a