gnu.mail.providers.smtp
public class SMTPTransport extends Transport
Version: 2.0
Field Summary | |
---|---|
protected SMTPConnection | connection
The connection used to communicate with the server. |
protected String | localHostName |
Constructor Summary | |
---|---|
SMTPTransport(Session session, URLName urlName)
Creates a new SMTPTransport instance.
|
Method Summary | |
---|---|
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. |
SMTPTransport
instance.
Parameters: session a Session
value urlName an URLName
value