<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="emailconfig.aspx.cs" Inherits="FangPage.Admin.emailconfig" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>站点邮箱服务器配置</title>

    <script type="text/javascript" src="js/common.js"></script>

    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <div class="ManagerForm">
        <form id="Form1" method="post" runat="server">
        <fieldset>
            <legend style="background: url(images/icons/SysEmail.gif) no-repeat 3px;padding-left:50px;">站点邮箱服务器配置</legend>
            <table id="Table1" class="table1" cellspacing="0" cellpadding="4" width="100%" border="0">
                <tr>
                    <td class="td1" width="20%" align="right">
                        邮箱服务器(SMTP)：
                    </td>
                    <td class="td1" width="30%">
                        <cc1:TextBox ID="smtp" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Width="200"></cc1:TextBox>
                    </td>
                    <td class="td1" align="right">
                        站点邮箱地址：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="sysemail" runat="server" RequiredFieldType="电子邮箱" CanBeNull="必填"
                            Width="200"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td2" align="right">
                        邮箱帐号：
                    </td>
                    <td class="td2">
                        <cc1:TextBox ID="userName" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填"
                            Width="200"></cc1:TextBox>
                    </td>
                    <td class="td1" align="right">
                        邮箱密码：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="_password" runat="server" TextMode="password" RequiredFieldType="暂无校验" CanBeNull="必填"
                            Width="200"></cc1:TextBox>
                            <input type="hidden" id="hiddpassword" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="td2" align="right">
                        使用本服务器发送：
                    </td>
                    <td class="td2" colspan="3">
                        <asp:CheckBox ID="systemsmtp" runat="server" Text="" />
                        (如果使用本服务器发送，用户设置的外部SMTP邮箱服务器将失效)
                    </td>
                </tr>
                <tr>
                    <td class="td2" align="right">
                        管理员邮件地址：
                    </td>
                    <td class="td2" colspan="3">
                        <cc1:TextBox ID="adminemail" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填"
                            Width="200"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <cc1:Button ID="SaveEmailInfo" runat="server" Text=" 保 存 " OnClick="SaveEmailInfo_Click">
                        </cc1:Button>&nbsp;&nbsp;
                        <button class="ManagerButton" type="button" onclick="javascript:window.location.href='emailsystem.aspx';">
                        <img src="images/arrow_undo.gif" />返 回</button>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend style="background: url(images/icons/SendMail.gif) no-repeat 3px;padding-left:40px;">测试邮件发送</legend>
            <table id="Table2" class="table1" cellspacing="0" cellpadding="4" width="100%" border="0">
                <tr>
                    <td class="td2" width="20%" align="right">
                        测试接收邮件地址：
                    </td>
                    <td class="td2">
                        <cc1:TextBox ID="testEmail" runat="server" RequiredFieldType="电子邮箱" CanBeNull="可为空" Width="300"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <cc1:Button ID="sendTestEmail" ButtonImgUrl="images/msgsend.gif" runat="server" Text="发送测试邮件" OnClick="sendTestEmail_Click">
                        </cc1:Button>
                    </td>
                </tr>
            </table>
        </fieldset>
        </form>
    </div>
    <script type="text/javascript">document.getElementById("_password").value = document.getElementById("hiddpassword").value;</script>
</body>
</html>
