javax.mail
public abstract class Transport extends Service
Version: 1.3
Constructor Summary | |
---|---|
Transport(Session session, URLName url)
Constructor. |
Method Summary | |
---|---|
void | addTransportListener(TransportListener l)
Adds a listener for transport events. |
protected void | notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
Notifies all transport listeners. |
void | removeTransportListener(TransportListener l)
Removes a transport event listener. |
static void | send(Message msg)
Sends the specified message.
|
static void | send(Message msg, Address[] addresses)
Sends the message to the specified addresses, ignoring any recipients
specified in the message itself. |
abstract void | sendMessage(Message msg, Address[] addresses)
Sends the message to the specified list of addresses. |
Parameters: session the session context for this transport url a URLName to be used for this transport
javamail.address.map
resource).Parameters: msg the message to send
Throws: SendFailedException if the message could not be sent to some or any of the recipients
Parameters: msg the message to send addresses the addresses to which to send the message
Throws: SendFailedException if the message could not be sent to some or any of the recipients
Parameters: msg the message to be sent addresses the addresses to send this message to
Throws: SendFailedException if the send failed because of invalid addresses MessagingException if the transport is not connected