mail.php 812 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use yii\widgets\ActiveForm;
  3. use yii\helpers\Html;
  4. /**
  5. * @var $this \yii\web\View
  6. */
  7. $this->title = '邮箱配置';
  8. ?>
  9. <?php $form = ActiveForm::begin([
  10. 'id' => 'mail-setting-form',
  11. ]); ?>
  12. <?=$form->field($model, 'mailHost')->textInput(['autocomplete' => 'off'])?>
  13. <?=$form->field($model, 'mailUsername')->textInput(['autocomplete' => 'off'])?>
  14. <?=$form->field($model, 'mailPassword')->passwordInput(['autocomplete' => 'off'])?>
  15. <?=$form->field($model, 'mailPort')->textInput(['autocomplete' => 'off'])?>
  16. <?=$form->field($model, 'mailEncryption')->dropDownList(['' => 'Default','ssl' => 'SSL','tls' => 'TLS'], ['class' => 'form-control'])?>
  17. <?= Html::submitButton(Yii::t('app', '保存'), ['class' => 'btn bg-maroon btn-flat btn-block'])?>
  18. <?php $form::end(); ?>