asp接收邮件,我用的是POP3SVG.DLL控件,控件已经注册...
代码如下:
Set Mailer = Server.CreateObject( "POP3svg.Mailer ")
Mailer.RemoteHost = pop3Server
Mailer.UserName = Pop3Name
Mailer.Password = Pop3Pwd
Mailer.TimeOut = TimeOut
Mailer.OpenPop3
if Mailer.GetPopHeaders then
varArray = Mailer.MessageInfo
if VarType(varArray) <> vbNull And IsEmpty(varArray) <> True then
ArrayLimit = UBound(varArray)
Response.Write " <table border=0 width= " "99% " " bgcolor=#000000 cellspacing=1 cellpadding=3> "
Response.Write " <tr bgcolor=#ffffff> "
Response.Write " <td width= '30% '> <b> " & "主题 " & " <b> </td> "
Response.Write " <td width= '22% '> <b> " & "日期 " & " <b> </td> "
Response.Write " <td width= '30% '> <b> " & "发件人 " & " <b> </td> "
Response.Write " <td width= '10% '> <b> " & "大小 " & " <b> </td> "
Response.Write " <td width= '8% '> <b> " & "附件 " & " <b> </td> "
Response.Write " </tr> "