<div class="mb-3">
    <label class="form-label">SMTP <?php echo $this->translate('Host');?></label>
    <input type="text" name="data[<?php echo $key?>][host]" value="<?php echo get($Settings,'data.host',$key);?>" class="form-control" placeholder="Smtp <?php echo $this->translate('Host');?>" maxlength="160">
</div>
<div class="mb-3">
    <label class="form-label">SMTP <?php echo $this->translate('Username');?></label>
    <input type="text" name="data[<?php echo $key?>][username]" value="<?php echo get($Settings,'data.username',$key);?>" class="form-control" placeholder="Smtp <?php echo $this->translate('Username');?>" maxlength="160">
</div>
<div class="mb-3">
    <label class="form-label">SMTP <?php echo $this->translate('Password');?></label>
    <input type="text" name="data[<?php echo $key?>][password]" value="<?php echo get($Settings,'data.password',$key);?>" class="form-control" placeholder="Smtp <?php echo $this->translate('Password');?>" maxlength="160">
</div>
<div class="mb-3">
    <label class="form-label">SMTP <?php echo $this->translate('Port');?></label>
    <input type="text" name="data[<?php echo $key?>][port]" value="<?php echo get($Settings,'data.port',$key);?>" class="form-control" placeholder="Smtp <?php echo $this->translate('Port');?>" maxlength="10">
</div>
<div class="mb-3">
    <label class="form-label">SMTP <?php echo $this->translate('Encryption');?></label>
    <select name="data[<?php echo $key?>][security]" class="form-select">
        <option value=""><?php echo $this->translate('Choose');?></option>
        <option value="tls" <?php if(get($Settings,'data.security',$key)=='tls' ) echo 'selected' ;?>>TLS</option>
        <option value="ssl" <?php if(get($Settings,'data.security',$key)=='ssl' ) echo 'selected' ;?>>SSL</option>
    </select>
</div>
<div class="mb-3">
    <label class="form-label"><?php echo $this->translate('From Address');?></label>
    <input type="text" name="data[<?php echo $key?>][sendemail]" value="<?php echo get($Settings,'data.sendemail',$key);?>" class="form-control" placeholder="<?php echo $this->translate('From Address');?>" maxlength="160">
</div>