Package com.axelor.mail
Class ImapAccount
java.lang.Object
com.axelor.mail.AbstractMailAccount
com.axelor.mail.ImapAccount
- All Implemented Interfaces:
MailAccount
The default implementation of
MailAccount
for IMAP/IMAPS accounts.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.axelor.mail.AbstractMailAccount
getSession, setConnectionTimeout, setProperties, setTimeout
-
Constructor Details
-
ImapAccount
Create a new IMAP account.- Parameters:
host
- server hostnameport
- server portuser
- login namepassword
- login password
-
ImapAccount
Create a new IMAP/IMAPS account.If the given channel is
MailConstants.CHANNEL_SSL
then it will useimaps
protocol overssl
.- Parameters:
host
- server hostnameport
- server portuser
- login namepassword
- login passwordchannel
- encryption channel (ssl, starttls or null)
-