gnu.mail.providers.smtp
Class SMTPTransport
public class SMTPTransport
This transport handles communications with an SMTP server.
Version:
- Andrew Selkirk
- Ben Speakmon
- Chris Burdess
protected SMTPConnection | connection- The connection used to communicate with the server.
|
protected String | localHostName
|
void | close()- Close this transport.
|
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 Session valueurlName - an URLName value
protocolConnect
protected boolean protocolConnect(String host,
int port,
String username,
String password)
throws MessagingException Connects to the SMTP server.
- protocolConnect in interface Service
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved