public class MailClient extends Object
Constructor and Description |
---|
MailClient(String host,
int port,
boolean ssl,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect() |
void |
disconnect() |
static String |
getMailingId(javax.mail.Message msg) |
javax.mail.Message |
getMessage(int messageNo) |
int |
getMessageCount() |
javax.mail.Message[] |
getMessages() |
int |
getNewMessageCount() |
static String |
getTextFromMessage(javax.mail.Message message) |
static void |
main(String[] args) |
void |
openFolder(String folderName) |
public static String getTextFromMessage(javax.mail.Message message) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
public void close()
public static String getMailingId(javax.mail.Message msg) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
Copyright © 2012-2018. All Rights Reserved.