对象的属性及方法:
所有代码段都必须调用该语句
set pop3 = server.createobject("zakspop3.server")
property : mailserverhost : the ip address of the pop3 server.
属性: mailserverhost : pop3服务器的ip地址
property : mailaccount : the username of the pop3 mailbox.
属性: mailaccount :pop3邮箱的用户名
property : mailpassword : the password of the mailbox. 属性:mailpassword:邮箱的密码
property : mailport : default to 110, the standard port for the pop3 protocol
属性: mailport : 默认值为110,pop3协议的标准端口
property : errorstring : an error description, should an error occur.
属性: errorstring :错误发生后的错误描述
property : useuidl : set to true to enable uidl support (defaults to false).
属性: useuidl :值为真时,支持uidl,默认值为假
function : login : attempt to connect to the mailserver & mailbox, return true for success, false for error
函数: login :和邮件服务器及邮箱建立连接,连接成功返回true,出错时返回false
function : fetchheaders : get the current message headers from the mailserver
函数: fetchheaders :从邮件服务器读取邮件标头
function : delete(msgid) : deletes the specified message from the mailserver
函数: delete(msgid) :从邮件服务器删除指定邮件
collection : messages : returns a collection of message objects (fetchheaders must have been called first)
函数: messages :返回一个message对象集合(之前必须先调用fetchheaders.
message object
property : date : the date the message was sent
属性:: date :邮件发送的日期
property : to : who the message is to
属性:to:邮件的接收人
property : from : who the message is from
属性:from:邮件的发送人
property : subject : the message subject
属性:subject:邮件主题
property : replyto : the replyto email address, if one was specified
属性:replyto:如果指定了是回复信件,该属性返回回复信件的地址
property : returnpath : the supplied return path (or reply address)
属性:returnpath:所提供的返回路径(或回复地址)
property : headerstring : the whole of the message headers
属性:headerstring:整个邮件的标头
property : size : the size of the whole message in bytes
属性:size:整个邮件的字节数
property : mimeencoded : returns true if the message has been mime encoded
属性:mimeencoded:如邮件是mime编码返回值为true
property : id : the message number
属性:id:邮件编号
property : uid : the message unique id (as returned by the pop3 command uidl)
属性:uid:邮件的唯一编号(从pop3命令uid列表中得到)
property : body : returns whole body
属性:body:返回整个邮件正文
property : htmlbody : trys to intelligently return a html compatible body, if mime encoded, then this could be a html encoded mime part, or a plain mime part, with <pre> tags around it. if not mime encoded, returns the whole body with <pre> around it.
属性:htmlbody:智能返回html正文(如果是mime编码,那么返回的是一个由<pre>标志标识的包含mime编码或简易mime编码的html。如果不是mime编码,则直接用<pre>标志标识的整个正文。
collection: bodyparts : a collection of mime parts, if the message was mime encoded.
集合:bodyparts:如果邮件是mime编码,则返回mime部分的集合
bodypart object
property : isattachment : returns true if this part is an attachment
属性:isattachment : 如果是附件则返回true
property : filename : returns the attachment filename
属性:filename:返回附件的文件名
property : charset : returns the encoding character set
属性:charset:返回编码的字符集
property : contentencoding : returns the encoding type
属性:contentencoding:返回编码类型
property : contenttype : returns the content type
属性:contenttype:返回内容类型
property : header : returns the mime header for this part
属性:header:返回该部分的mime标头
property : body : the body part of this mime part (decoded as required)
属性:body:mime部分的正文部分(已解码)
property : rawbody : the body part of this mime part (no decoding)
属性:rawbody:mime部分的正文部分(未解码)
property : attachment : an array of bytes, representing the decoded attachment
属性:attachment:返回一个字节数组,存放已解码的附件内容
property : size : returns the decoded size of this part in bytes
属性:size:返回已解码的内容字节数
