yii\mail\BaseMailer::setViewPath PHP Method

setViewPath() public method

public setViewPath ( string $path )
$path string the directory that contains the view files for composing mail messages This can be specified as an absolute path or a path alias.
    public function setViewPath($path)
    {
        $this->_viewPath = Yii::getAlias($path);
    }