<%@ 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/icon32/SysEmail.gif) no-repeat 3px;padding-left:40px;">站点邮箱服务器配置</legend>
            <table id="Table1" class="table1" cellspacing="0" cellpadding="4" width="100%" border="0">
                <tr>
                    <td class="td1" width="20%" align="right">
                        邮箱服务器地址：
                    </td>
                    <td class="td1" width="30%">
                        <cc1:TextBox ID="smtp" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Width="150"></cc1:TextBox>
                    </td>
                    <td class="td1" width="20%" align="right">
                        邮箱服务器端口：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="port" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Width="150"></cc1:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td2" align="right">
                        邮箱登录帐号：
                    </td>
                    <td class="td2">
                        <cc1:TextBox ID="userName" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填"
                            Width="150"></cc1:TextBox>
                    </td>
                    <td class="td1" align="right">
                        邮箱登录密码：
                    </td>
                    <td class="td1">
                        <cc1:TextBox ID="_password" runat="server" TextMode="password" RequiredFieldType="暂无校验" CanBeNull="必填"
                            Width="150"></cc1:TextBox>
                            <input type="hidden" id="hiddpassword" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="td1" align="right">
                        站点邮箱地址：
                    </td>
                    <td class="td1" colspan="3">
                        <cc1:TextBox ID="sysemail" runat="server" RequiredFieldType="电子邮箱" CanBeNull="必填"
                            Width="150"></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/icon32/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="250"></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>
