Package com.axelor.mail
Class MailReader
java.lang.Object
com.axelor.mail.MailReader
The
MailReader provides features to read mails.-
Constructor Summary
ConstructorsConstructorDescriptionMailReader(MailAccount account) Create a new instance ofMailReaderwith the given account. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.mail.StoregetStore()Get aStoreobject and connect to the store if not connected.
-
Constructor Details
-
MailReader
Create a new instance ofMailReaderwith the given account.- Parameters:
account- the account to use- Throws:
IllegalArgumentException- if mail account can't get aStore
-
-
Method Details
-
getStore
public jakarta.mail.Store getStore() throws jakarta.mail.AuthenticationFailedException, jakarta.mail.MessagingExceptionGet aStoreobject and connect to the store if not connected.- Returns:
- an instance of
Store - Throws:
jakarta.mail.AuthenticationFailedException- if authentication failsjakarta.mail.MessagingException- if other failure
-