Uses of Class javax.mail.Transport (JavaMail API documentation)
Date: 2019-08-31

## Uses of Class
javax.mail.Transport

- Packages that use Transport
  Package | Description
  --- | ---
  com.sun.mail.smtp | An SMTP protocol provider for the JavaMail API that provides access to an SMTP server.
  javax.mail | The JavaMailTM API provides classes that model a mail system.
  javax.mail.event | Listeners and events for the JavaMail API.

- - ### Uses of Transport in com.sun.mail.smtp

    Subclasses of Transport in com.sun.mail.smtp
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SMTPSSLTransport` This class implements the Transport abstract class using SMTP over SSL for message submission and transport.
    `class` | `SMTPTransport` This class implements the Transport abstract class using SMTP for message submission and transport.

  - ### Uses of Transport in javax.mail

    Methods in javax.mail that return Transport
    Modifier and Type | Method and Description
    --- | ---
    `Transport` | Session.`getTransport()` Get a Transport object that implements this user's desired Transport protcol.
    `Transport` | Session.`getTransport(Address address)` Get a Transport object that can transport a Message of the specified address type.
    `Transport` | Session.`getTransport(Provider provider)` Get an instance of the transport specified in the Provider.
    `Transport` | Session.`getTransport(java.lang.String protocol)` Get a Transport object that implements the specified protocol.
    `Transport` | Session.`getTransport(URLName url)` Get a Transport object for the given URLName.

  - ### Uses of Transport in javax.mail.event

    Constructors in javax.mail.event with parameters of type Transport
    Constructor and Description
    `TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)` Constructor.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms< /a>.