AutoDiscover Google免费企业套件

 

  1. <%
  2. Response.Status = "405"
  3. %>
  4. <?xml version="1.0" encoding="utf-8" ?>
  5. <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
  6.   <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
  7.     <Account>
  8.       <AccountType>email</AccountType>
  9.       <Action>settings</Action>
  10.       <Protocol>
  11.         <Type>IMAP</Type>
  12.         <Server>imap.gmail.com</Server>
  13.         <Port>993</Port>
  14.         <DomainName>hoho.bz</DomainName>
  15.         <DomainRequired>on</DomainRequired>
  16.         <SPA>off</SPA>
  17.         <SSL>on</SSL>
  18.         <AuthRequired>on</AuthRequired>
  19.       </Protocol>
  20.       <Protocol>
  21.         <Type>SMTP</Type>
  22.         <Server>smtp.gmail.com</Server>
  23.         <Port>587</Port>
  24.         <DomainName>hoho.bz</DomainName>
  25.         <DomainRequired>on</DomainRequired>
  26.         <SPA>off</SPA>
  27.         <SSL>on</SSL>
  28.         <AuthRequired>on</AuthRequired>
  29.         <UsePOPAuth>on</UsePOPAuth>
  30.         <SMTPLast>on</SMTPLast>
  31.       </Protocol>
  32.       <Protocol>
  33.         <Type>POP3</Type>
  34.         <Server>pop.gmail.com</Server>
  35.         <Port>995</Port>
  36.         <DomainName>hoho.bz</DomainName>
  37.         <DomainRequired>on</DomainRequired>
  38.         <SPA>off</SPA>
  39.         <SSL>on</SSL>
  40.         <AuthRequired>on</AuthRequired>
  41.       </Protocol>
  42.     </Account>
  43.   </Response>
  44. </Autodiscover>

 

配置了Outlook的自动查找.

之前用Google免费的企业邮局, 配置outlook的时候呢, Outlook有个自动配置的功能, 看了MSDN相关文档, 摸索出其中的方法, 文档中描述, 假如使用静态的Autodiscover文件, 必须配置405的HTTP头消息才行.

image

于是, 将hoho.bz目录下的xml扩展文件映射到ASP处理DLL上, xml就和asp文件一样处理了.

image

然后在文件的开始处, 加上Header的Response 405代码标识.

image

在Outlook配置的时候, 就能够自动搜索配置文件了.

我太聪明了.. = =