⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.providers.smtp

Class SMTPTransport

java.lang.Object
|
+--javax.mail.Service
   |
   +--javax.mail.Transport
      |
      +--gnu.mail.providers.smtp.SMTPTransport


public class SMTPTransport
extends Transport

This transport handles communications with an SMTP server.
Authors:
Andrew Selkirk
Ben Speakmon

Field Summary

SMTPConnection

connection

The connection used to communicate with the server.

String

localHostName

Constructor Summary

SMTPTransport(Session session, URLName urlName)

Creates a new SMTPTransport instance.

Method Summary

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.

Field Details

connection

protected SMTPConnection connection

The connection used to communicate with the server.


localHostName

protected String localHostName

Constructor Details

SMTPTransport

public SMTPTransport(Session session, URLName urlName)

Creates a new SMTPTransport instance.

Parameters:
session - a Session value
urlName - an URLName value

Method Details

close

public void close()

Close this transport.


protocolConnect

protected boolean protocolConnect(String host, int port, String username, String password)

Connects to the SMTP server.

Parameters:
host
port
username
password

sendMessage

public void sendMessage(Message message, Address addresses)

Send the specified message to the server.

Parameters:
message
addresses