Class EmailSession
- java.lang.Object
-
- org.apache.manifoldcf.crawler.notifications.email.EmailSession
-
public class EmailSession extends java.lang.ObjectThis class represents a raw email session, without any protection from threads waiting on sockets, etc.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringpasswordprotected intportprotected java.util.Propertiespropertiesprotected java.lang.Stringserverprotected java.lang.Stringusername
-
Constructor Summary
Constructors Constructor Description EmailSession(java.lang.String server, int port, java.lang.String username, java.lang.String password, java.util.Properties properties)Create a session
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckConnection()voidclose()voidsend(java.util.List<java.lang.String> to, java.lang.String from, java.lang.String subject, java.lang.String body)
-
-
-
Method Detail
-
checkConnection
public void checkConnection() throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
send
public void send(java.util.List<java.lang.String> to, java.lang.String from, java.lang.String subject, java.lang.String body) throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
close
public void close() throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
-