5.1

Table Of Contents
Method Returns Description
listMessages():POP3Message[]
Array of POP3Message Lists all messages. If there are no
messages, the method returns a zero
length array. If the operation fails, the
method returns null.
login(String,String):boolean Boolean
Logs in on a POP3 server with the given
user name and password. Before
attempting to log in, you must connect
to the server with the connect()
method.
loginWithSecret(String,String,S
tring):boolean
Boolean
Logs in on a POP3 server with the given
user name and authentication
information.
logout():Object Object
Logs out of a POP3 server. To fully
disconnect from the server, you must
call the disconnect() method.
noop():Object Object
Sends a NOOP command to a POP3
server. This is useful for keeping the
connection alive.
reset():Object Object
Resets a POP3 session. This is useful for
undoing any message deletions that
might have been performed.
POP3Message Class
The POP3Message class provides POP3 email functionality.
The POP3Message class defines the following attributes.
Attribute Returns Description
body String
Message body
from String
Sender
id Number
Message ID in current session
subject String
Message subject
to String
Recepient
The POP3Message class defines the following methods.
Method Returns Description
deleteFromServer():Object Object
Deletes a message from the POP3
server. The server marks the message
for deletion but does not delete it
immediately. If you decide to unmark
the message, you must use call the
reset() command from the
POP3Client class. The server deletes all
messages marked for deletion when
you call the logout() command from
the POP3Client class.
getHeader(String):string String
Gets the header value.
Chapter 8 Using the Net Plug-In
VMware, Inc. 67