com.caucho.mail.smtp
Class SmtpTransport

java.lang.Object
  extended by Transport
      extended by com.caucho.mail.smtp.SmtpTransport

public class SmtpTransport
extends Transport

Resin's SMTP transport implementation.


Constructor Summary
SmtpTransport(Session session, URLName urlName)
           
 
Method Summary
 void close()
          Close connection.
protected  boolean protocolConnect(java.lang.String host, int port, java.lang.String user, java.lang.String password)
          Connect for the protocol.
 void sendMessage(Message msg, Address[] addresses)
          Sends a message to the specified recipients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmtpTransport

public SmtpTransport(Session session,
                     URLName urlName)
Method Detail

protocolConnect

protected boolean protocolConnect(java.lang.String host,
                                  int port,
                                  java.lang.String user,
                                  java.lang.String password)
                           throws MessagingException
Connect for the protocol.

Throws:
MessagingException

sendMessage

public void sendMessage(Message msg,
                        Address[] addresses)
                 throws MessagingException
Sends a message to the specified recipients.

Parameters:
msg - the message to send
addresses - the destination addresses
Throws:
MessagingException

close

public void close()
           throws MessagingException
Close connection.

Throws:
MessagingException