Package com.axelor.mail
Class MailReader
- java.lang.Object
-
- com.axelor.mail.MailReader
-
public class MailReader extends Object
TheMailReaderprovides features to read mails.
-
-
Constructor Summary
Constructors Constructor Description MailReader(MailAccount account)Create a new instance ofMailReaderwith the given account.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.StoregetStore()Get aStoreobject and connect to the store if not connected.
-
-
-
Constructor Detail
-
MailReader
public MailReader(MailAccount account)
Create a new instance ofMailReaderwith the given account.- Parameters:
account- the account to use- Throws:
IllegalArgumentException- if mail account can't get aStore
-
-
Method Detail
-
getStore
public javax.mail.Store getStore() throws javax.mail.AuthenticationFailedException, javax.mail.MessagingExceptionGet aStoreobject and connect to the store if not connected.- Returns:
- an instance of
Store - Throws:
javax.mail.AuthenticationFailedException- if authentication failsjavax.mail.MessagingException- if other failure
-
-