<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Config_Email_EWS.aspx.cs" Inherits="Appform.Admin.Config_Email_EWS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    
    <div style="margin:20px">
    配置邮件<br /><br />
 
        <table class="table">


             <tbody> 
    <tr>
      <td  colspan="4"  >
        配置邮件服务器以便用户提交时，通知相关人员。使用EWS需要下载EWS组件<a href="http://files.cnblogs.com/files/mqingqing123/ews.rar" style="color:red">下载</a> 解压后，放到bin文件夹下。
      </td>
    </tr>
    
    
    
    <tr>
      <td  colspan="4" class="td_bg">
     &nbsp;&nbsp;&nbsp;&nbsp; <asp:CheckBox class="gchk" ClientIDMode="Static"  ID="cb_issendmail" runat="server" Text="在用户提交申请时，发送邮件通知"   Font-Bold="true"  />
      </td>
    </tr>
    
    
   



            <tr>
                <th width="200px">
用户名
                </th>

                <td>
<asp:TextBox runat="server" ID="txt_ews_username" CssClass="form-control"   ></asp:TextBox>
  
                </td>
            </tr>
            <tr>
                <th>
密码:
                </th>
                <td>
                    <asp:TextBox runat="server" ID="txt_ews_password" CssClass="form-control" ></asp:TextBox>

                </td>
            </tr>


          <tr>
                <th>
域:
                </th>
                <td>
                    <asp:TextBox runat="server" ID="txt_ews_domain" CssClass="form-control" placeholder=""></asp:TextBox>

                </td>
            </tr>



            <tr>
                <th>
                    发件人邮件
                </th>
                <td>
<asp:TextBox runat="server"  ID="txt_ews_mail" CssClass="form-control" placeholder="appform@dotnetcms.org"></asp:TextBox>
                </td>

            </tr>



                 
            <tr>
                <th>
                    组织者（可选）
                </th>
                <td>
<asp:TextBox runat="server"  ID="txt_organizer" CssClass="form-control" ></asp:TextBox>
                </td>

            </tr>



                   <tr>
                <th>
                   Exchange版本
                </th>
                <td>
                   <asp:DropDownList runat="server" ID="ddl_ews_exchangeversion" CssClass="form-control" Width="300px">
                       <asp:ListItem Text="默认版本" Value=""></asp:ListItem>
                       <asp:ListItem Text="Exchange2007_SP1" Value="Exchange2007_SP1"></asp:ListItem>
                       <asp:ListItem Text="Exchange2010" Value="Exchange2010"></asp:ListItem>
                       <asp:ListItem Text="Exchange2010_SP1" Value="Exchange2010_SP1"></asp:ListItem>
                       <asp:ListItem Text="Exchange2010_SP2" Value="Exchange2010_SP2"></asp:ListItem>
                       <asp:ListItem Text="Exchange2013" Value="Exchange2013"></asp:ListItem>
                       <asp:ListItem Text="Exchange2013_SP1" Value="Exchange2013_SP1"></asp:ListItem>

                   </asp:DropDownList>
                </td>
            </tr>




            <tr>
                <th>
                   Exchange接口
                </th>
                <td>
                    <asp:TextBox runat="server"  CssClass="form-control" ID="txt_ews_exchangewebservice" placeholder="https://outlook.office365.com/ews/exchange.asmx"></asp:TextBox>
                </td>
            </tr>



            <tr>
                <td>

                </td>

                <td>
                      <asp:Button ID="Button1" CssClass="btn btn-primary" runat="server" Text="保存" OnClick="Button1_Click" />
                 <a href="Config_Email.aspx">切换到"使用SMTP发送邮件"</a> 

                   

                </td>
            </tr>
        </table>
    
 
 
    
        <br />
      
        收件人地址<asp:TextBox ID="txt_text" CssClass="form-control " style="width:400px; display:inline-block" runat="server"></asp:TextBox>
        <asp:Button ID="btn_test" runat="server" CssClass="btn btn-success" OnClick="btn_test_Click" Text="测试" />
       
         <br />
        <br />
        <br />

        </div>

</asp:Content>
