how to get email field of contact us form in the email which admin got (yii2)
问题 I am using yii2 advanced contact us form. but unable to get email of user which is filled in email field of contact form.. public function sendEmail($email) { return Yii::$app->mailer->compose() ->setTo($email) ->setFrom([$this->email => $this->name]) //echo "emailll<pre>";print_r($this->email);exit; //here I am getting the correct email which is filled in contact form //but when I received mail. nowhere I got That email id... // In from: username@exmple.com which i set as username // In To :