Java javax.mail Transport fields, constructors, methods, implement or subclass

Example usage for Java javax.mail Transport fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.mail Transport.

The text is from its open source code.

Subclass

javax.mail.Transport has subclasses.
Click this link to see all its subclasses.

Method

voidaddConnectionListener(ConnectionListener l)
Add a listener for Connection events on this service.
voidaddTransportListener(TransportListener l)
Add a listener for Transport events.
voidclose()
Close this service and terminate its connection.
voidconnect(String host, String user, String password)
Connect to the specified address.
voidconnect(String host, int port, String user, String password)
Similar to connect(host, user, password) except a specific port can be specified.
voidconnect()
A generic connect method that takes no parameters.
voidconnect(String user, String password)
Connect to the current host using the specified username and password.
URLNamegetURLName()
Return a URLName representing this service.
booleanisConnected()
Is this service currently connected?
voidsend(Message msg)
Send a message.
voidsend(Message msg, Address[] addresses)
Send the message to the specified addresses, ignoring any recipients specified in the message itself.
voidsend(Message msg, String user, String password)
Send a message.
voidsendMessage(Message msg, Address[] addresses)
Send the Message to the specified list of addresses.