對象的屬性及方法: 所有代碼段都必須調(diào)用該語句 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協(xié)議的標準端口
Property : errorString : An error description, should an error occur. 屬性: errorString :錯誤發(fā)生后的錯誤描述
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 函數(shù): Login :和郵件服務器及郵箱建立連接,連接成功返回True,出錯時返回False
Function : FetchHeaders : Get the current message headers from the mailserver 函數(shù): FetchHeaders :從郵件服務器讀取郵件標頭
Function : Delete(msgID) : Deletes the specified message from the mailserver 函數(shù): Delete(msgID) :從郵件服務器刪除指定郵件
Collection : Messages : returns a collection of message objects (FetchHeaders must have been called first) 函數(shù): Messages :返回一個message對象集合(之前必須先調(diào)用FetchHeaders.
Message Object
Property : Date : the date the message was sent 屬性:: Date :郵件發(fā)送的日期
Property : To : who the message is to 屬性:To:郵件的接收人
Property : From : who the message is from 屬性:From:郵件的發(fā)送人
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:整個郵件的字節(jié)數(shù)
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:返回內(nèi)容類型
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:返回一個字節(jié)數(shù)組,存放已解碼的附件內(nèi)容
Property : Size : returns the decoded size of this part in bytes 屬性:Size:返回已解碼的內(nèi)容字節(jié)數(shù)(出處:熱點網(wǎng)絡)
|