<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&op=<?=$op?>&">
    <div class="space">
        <div class="subtitle">邮件设置</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" class="altbg1">是否启用 STMP 方式发送邮件:</td>
                <td width="50%">
                    <input type="radio" name="mail[use_stmp]" value="1"<?=$use_stmp?' checked="checked"':''?> /> 是&nbsp;
                    <input type="radio" name="mail[use_stmp]" value="0"<?=!$use_stmp?' checked="checked"':''?> /> 否
                </td>
            </tr>
            <tr>
                <td class="altbg1">STMP 服务器:</td>
                <td><input type="text" class="txtbox" name="mail[stmp]" value="<?=$stmp?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">STMP 服务器端口:</td>
                <td><input type="text" class="txtbox" name="mail[port]" value="<?=($port?$port:'25')?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">SMTP 服务器的用户邮箱:</td>
                <td><input type="text" class="txtbox" name="mail[email]" value="<?=$email?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">SMTP 服务器的用户帐号:</td>
                <td><input type="text" class="txtbox" name="mail[username]" value="<?=$username?>" /></td>
            </tr>
            <tr>
                <td class="altbg1">SMTP 服务器的用户密码:</td>
                <td><input type="text" class="txtbox" name="mail[password]" value="<?=$password?>" /></td>
            </tr>
        </table>
        <center><input type="submit" name="settingsubmit" value=" 提交 " class="btn" /></center>
    </div>
</form>
</div>