Example usage for Java javax.mail Transport fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addConnectionListener(ConnectionListener l) Add a listener for Connection events on this service. |
void | addTransportListener(TransportListener l) Add a listener for Transport events. |
void | close() Close this service and terminate its connection. |
void | connect(String host, String user, String password) Connect to the specified address. |
void | connect(String host, int port, String user, String password) Similar to connect(host, user, password) except a specific port can be specified. |
void | connect() A generic connect method that takes no parameters. |
void | connect(String user, String password) Connect to the current host using the specified username and password. |
URLName | getURLName() Return a URLName representing this service. |
boolean | isConnected() Is this service currently connected? |
void | send(Message msg) Send a message. |
void | send(Message msg, Address[] addresses) Send the message to the specified addresses, ignoring any recipients specified in the message itself. |
void | send(Message msg, String user, String password) Send a message. |
void | sendMessage(Message msg, Address[] addresses) Send the Message to the specified list of addresses. |