Package org.javlo.mailing
Class MailClient
- java.lang.Object
-
- org.javlo.mailing.MailClient
-
public class MailClient extends Object
-
-
Constructor Summary
Constructors Constructor Description MailClient(String host, int port, boolean ssl, String username, String password)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getTextFromMessage
public static String getTextFromMessage(javax.mail.Message message) throws javax.mail.MessagingException, IOException
- Throws:
javax.mail.MessagingException
IOException
-
close
public void close()
-
getMailingId
public static String getMailingId(javax.mail.Message msg) throws javax.mail.MessagingException, IOException
- Throws:
javax.mail.MessagingException
IOException
-
-