I’m trying to send an email with this URL:
$body = 'http://localhost/basic/web/index.php?r=site/user';
Yii::$app->mailer->compose()
->setTo($model->email)
->setFrom(Yii::$app->params['adminEmail'])
->setSubject('Subject')
->setTextBody($body)
->send();
But the result I get from email is this (attention "…php?r=3Dsite…"):
http://localhost/basic/web/index.php?r=3Dsite/user