• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 在ASP中用EasyMailObject組件處理Exchange郵件源代碼(2)

    發表于:2007-07-14來源:作者:點擊數: 標簽:
    讀取郵件內容和附件(showbody1.asp) %@ LANGUAGE=" VB SCRIPT" % % '************************************************ '這個文件顯示郵件的內容和附件 '作者:awayeah '郵箱:awayeah@163 .net '************************************************ % html
    讀取郵件內容和附件(showbody1.asp)
    <%@ LANGUAGE="VBSCRIPT" %>
    <%
    '************************************************

    '這個文件顯示郵件的內容和附件
    '作者:awayeah
    '郵箱:awayeah@163.net

    '************************************************
    %>

    <html>
    <head>
    <title>讀郵件</title>
    </head>
    <body>
    <%
    SET POP3=session("POP3")
    x = POP3.Connect()

    If x <> 0 Then
    Response.Write "連接錯誤: " + CStr(x)
    POP3.Disconnect
    End If
    y = POP3.DownloadHeaders
    j=pop3.GetMessageNumFromID(request.querystring("id"))
    msg = POP3.DownloadSingleMessage(j)
    'Set Message Object to point to that downloaded message
    Set Message = POP3.Messages(msg)
    '顯示郵件內容
    Response.Write replace(Message.bodytext,chr(13),"<br>")
    %>
    <%
    '如果該郵件有附件,則顯示附件文件名和文件大小
    if message.Attachments.Count>0 then%>
    <P></p>
    <hr>
    <table border=1 align="left" cellspacing="0">
    <tr><td>文件名</td><td>大小</td><tr>
    <%
    For k = 1 To message.Attachments.Count
    Response.Write ("<tr><td>")%>
    <a href=# onClick=javascript:window.open('saveatt.asp?msgid=<%=j%>&attid=<%=k%>','getatt','width=600,height=440,scrollbars=yes');>
    <%=Message.Attachments(k).name%></a></td><td>
    <%Response.Write cstr(Message.Attachments(k).size)
    Response.Write "</td></tr>"
    Next
    %>
    </table>
    <%
    end if
    POP3.Disconnect
    %>
    </body>
    </html>


    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>