<%@ 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 class="alert">
   
        配置邮件服务器以便用户提交时，通知相关人员。使用EWS需要下载EWS组件<a href="www.dotnetcms.cn/download/ews.rar" style="color:red">下载</a> 解压后，放到bin文件夹下。
     
       </div>




  <table class="layui-table table2">
  <tbody> 
   
    
    
    
    <tr>
      <td  colspan="4"  >
          <input type="checkbox" runat="server" class="gchk" id="cb_issendmail"  lay-skin="primary" title="启用发送邮件通知" />
        </td>
    </tr>

   


            <tr>
                <th class="req" >
用户名
                </th>

                <td>
<asp:TextBox runat="server" ID="txt_ews_username"  CssClass="layui-input" ></asp:TextBox>
  
                </td>
           
                <th class="req" >
密码:
                </th>
                <td>
                    <asp:TextBox runat="server" ID="txt_ews_password"   CssClass="layui-input" ></asp:TextBox>

                </td>
            </tr>


          <tr>
                <th class="req" >
域:
                </th>
                <td>
                    <asp:TextBox runat="server" ID="txt_ews_domain"  CssClass="layui-input" placeholder=""></asp:TextBox>

                </td>
            
                <th class="req" >
                    发件人邮件
                </th>
                <td>
<asp:TextBox runat="server"  ID="txt_ews_mail"  CssClass="layui-input" placeholder="appform@dotnetcms.org"></asp:TextBox>
                </td>

            </tr>



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

            
                <th class="req" >
                   Exchange版本
                </th>
                <td>
                   <asp:DropDownList runat="server" ID="ddl_ews_exchangeversion" lay-ignore CssClass="form-control" >
                       <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 class="req" >
                   Exchange接口
                </th>
                <td colspan="3">
                    <asp:TextBox runat="server"  CssClass="layui-input" ID="txt_ews_exchangewebservice" placeholder="https://outlook.office365.com/ews/exchange.asmx"></asp:TextBox>
                </td>
            </tr>

          <tr>
                <th>
                    测试收件人邮箱
                </th>

                  <td colspan="3">
                    
                      <div class="flex">

                     
                   <asp:TextBox ID="txt_text"   CssClass="layui-input" runat="server"></asp:TextBox>
                    <asp:Button ID="btn_test"
                             runat="server" class="layui-btn layui-btn-normal" 
                        OnClick="btn_test_Click" Text="测试" />
                    

                           </div>

                </td>
            </tr>





            <tr>
                

                <td colspan="4" align="center">
                      <asp:Button ID="Button1" 
                          
                          CssClass=" layui-btn " runat="server" Text="保存" OnClick="Button1_Click" />
                
                    
                    
                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    
                    
                       <asp:LinkButton runat="server" 
                           OnClientClick="layer.msg('切换成功');"
                           class="mylink"
                           ID="lb_switch" OnClick="lb_switch_Click">切换到"使用SMTP发送邮件"</asp:LinkButton>
                 

                   

                </td>
            </tr>



        


        </table>
    
 
  


     
</asp:Content>
