<%@LANGUAGE = VBSCRIPT%> <html> <body> <% Dim esm ' 创建EMSMS对象 Set esm = Server.CreateObject("EMSMS.sms") ' 导入指定SMS文件夹中的所有数据 esm.Load ("C:\WinWebMail\sms\") Response.Write "当前数据总数: " & esm.Count & "<br><br>" if esm.Count > 0 then ' 取最后一条数据的信息 esm.Get esm.Count - 1 Response.Write "取最后一条数据的信息:<br>" Response.Write "发件人名: " & esm.FromName & "<br>" Response.Write "发件人地址: " & esm.FromMail & "<br>" Response.Write "收件人帐号: " & esm.To & "<br>" Response.Write "邮件重要度: " & esm.Priority & "<br>" Response.Write "收件时间: " & esm.ReceiveTime & "<br>" Response.Write "发件时间: " & esm.SendTime & "<br>" Response.Write "邮件大小: " & esm.Size & "<br>" Response.Write "邮件主题: " & esm.Subject & "<br>" end if Dim i i = 0 ' 删除所有发件人地址为: admin@system.mail 的数据 Do While i < esm.Count esm.Get i If esm.FromMail = "admin@system.mail" Then esm.RemoveIt i i = i - 1 End If i = i + 1 Loop Set esm = Nothing %> </body> </html> |
Copyright 2000-Present by Ma Jian. All rights reserved. 皖ICP备05013246号