Search

Class MailClient

Mail client that can be used to retrieve messages from a mail server. The default protocol is IMAP but POP3 protocol can also be used.

Attributes

None

Methods

Name Returns
MailClient() constructor
close() void
closeFolder() void
connect(String host, Number port, String username, String password) void
deleteMessage(String msgNumber) void
deleteMessages(String[] msgNumbers) void
disableImapCompatibilityMode() void
enableImapCompatibilityMode() void
enableSSL() void
expungeMessages() ReceivedMessage[]
getDefaultFolder() void
getDeletedMessages() ReceivedMessage[]
getMessage(String msgNumber) ReceivedMessage[]
getMessageCount() Number
getMessages() ReceivedMessage[]
getMessagesBetween(String startMsgNumber, String endMsgNumber) ReceivedMessage[]
getNewMessageSize() Number
getRecentMessages() ReceivedMessage[]
getSessionProperty(String key) String
getSubFolders() String[]
getSubscribedSubFolders() String[]
getUnseenMessages() ReceivedMessage[]
getUserNamespaces(String userName) String[]
openDefaultFolder() void
openFolder(String folderName) void
searchBodyMessage(String pattern) ReceivedMessage[]
searchFromAddress(String pattern) ReceivedMessage[]
searchRecipientAddress(String pattern) ReceivedMessage[]
searchSubjectMessage(String pattern) ReceivedMessage[]
setConnectionTimeout(Number timeout) void
setMaxBodyPartSize(Number size) void
setProtocol(String protocol) void
setSessionProperty(String key, String value) void
setSocketTimeout(Number timeout) void

Returned by

None

Referenced in

None