Package com.axelor.mail
Class ImapAccount
- java.lang.Object
-
- com.axelor.mail.AbstractMailAccount
-
- com.axelor.mail.ImapAccount
-
- All Implemented Interfaces:
MailAccount
public class ImapAccount extends AbstractMailAccount
The default implementation ofMailAccount
for IMAP/IMAPS accounts.
-
-
Method Summary
-
Methods inherited from class com.axelor.mail.AbstractMailAccount
getSession, setConnectionTimeout, setProperties, setTimeout
-
-
-
-
Constructor Detail
-
ImapAccount
public ImapAccount(String host, String port, String user, String password)
Create a new IMAP account.- Parameters:
host
- server hostnameport
- server portuser
- login namepassword
- login password
-
ImapAccount
public ImapAccount(String host, String port, String user, String password, String channel)
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)
-
-