yii2 form to send attachment
问题 I have some form to send a email, but I didn't know how to do it, I'm currently using yii2 here is my form <?php use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\captcha\Captcha; use yii\mail\BaseMailer; $this->title = 'Career'; $this->params['breadcrumbs'][] = $this->title; ?> <?php $form = ActiveForm::begin(['id' => 'career-form']); ?> <?= $form->field($model, 'name')->textInput(['autofocus' => true, 'placeholder' => 'Name', 'class' => 'required'])->label(false) ?> <?= $form-