java.lang.Object | +--javax.mail.Service | +--javax.mail.Transport | +--gnu.mail.providers.smtp.SMTPTransport
SMTPConnection | The connection used to communicate with the server. |
String |
SMTPTransport(Session session, URLName urlName) Creates a new SMTPTransport instance. |
void | close() Close this transport. |
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. |
protected SMTPConnection connection
protected String localHostName
public SMTPTransport(Session session, URLName urlName)
SMTPTransport
instance.
public void close()
protected boolean protocolConnect(String host, int port, String username, String password)
public void sendMessage(Message message, Address addresses)