java.lang.ObjectAn abstract class that models a message transport. Subclasses provide actual implementations.javax.mail.Service
javax.mail.Transport
Note that Transport extends the Service
class, which provides many common methods for naming transports,
connecting to transports, and listening to connection events.
John - ManiMax - SpivakBill - Shannon1.40 - , 07/05/17| Fields inherited from javax.mail.Service: |
|---|
| session, url, debug |
| Constructor: |
|---|
|
| Method from javax.mail.Transport Summary: |
|---|
| addTransportListener, notifyTransportListeners, removeTransportListener, send, send, sendMessage |
| Methods from javax.mail.Service: |
|---|
| addConnectionListener, close, connect, connect, connect, connect, finalize, getURLName, isConnected, notifyConnectionListeners, protocolConnect, queueEvent, removeConnectionListener, setConnected, setURLName, toString |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.mail.Transport Detail: |
|---|
The default implementation provided here adds this listener to an internal list of TransportListeners. |
The provided default implementation queues the event into an internal event queue. An event dispatcher thread dequeues events from the queue and dispatches them to the registered TransportListeners. Note that the event dispatching occurs in a separate thread, thus avoiding potential deadlock problems. |
The default implementation provided here removes this listener from the internal list of TransportListeners. |
Message method getAllRecipients),
using message transports appropriate to each address. The
send method calls the saveChanges
method on the message before sending it. If any of the recipient addresses is detected to be invalid by the Transport during message submission, a SendFailedException is thrown. Clients can get more detail about the failure by examining the exception. Whether or not the message is still sent succesfully to any valid addresses depends on the Transport implementation. See SendFailedException for more details. Note also that success does not imply that the message was delivered to the ultimate recipient, as failures may occur in later stages of delivery. Once a Transport accepts a message for delivery to a recipient, failures that occur later should be reported to the user via another mechanism, such as returning the undeliverable message.
Note that |
send method calls the saveChanges
method on the message before sending it. |
Unlike the static |