gnu.mail.providers.smtp
Class SMTPTransport
public class SMTPTransport
 This transport handles communications with an SMTP server.
| protected  SMTPConnection | connection The connection used to communicate with the server.
 | 
| protected  String | localHostName
 | 
|  void | close() Close this transport.
 | 
|  String | getGreeting() Returns the greeting banner.
 | 
| protected  boolean | protocolConnect(String host, int port, String username, String password) Connects to the SMTP server.
 | 
|  void | sendMessage(Message message, Address[] addresses) Send the specified message to the server.
 | 
| addConnectionListener,close,connect,connect,connect,getURLName,isConnected,notifyConnectionListeners,protocolConnect,removeConnectionListener,setConnected,setURLName,toString | 
connection
protected SMTPConnection connection
 The connection used to communicate with the server.
localHostName
protected String localHostName
SMTPTransport
public SMTPTransport(Session session,
                     URLName urlName) Creates a new SMTPTransport instance.
- session- a- Sessionvalue
- urlName- an- URLNamevalue
getGreeting
public String getGreeting()
            throws MessagingException Returns the greeting banner.
protocolConnect
protected boolean protocolConnect(String host,
                                  int port,
                                  String username,
                                  String password)
            throws MessagingException Connects to the SMTP server.
- protocolConnect in interface Service