cc.glsn
Class Qsmtp

java.lang.Object
  extended by cc.glsn.Qsmtp

public class Qsmtp
extends Object


Constructor Summary
Qsmtp(InetAddress address)
           
Qsmtp(InetAddress address, int port)
           
Qsmtp(String hostid)
          Create a Qsmtp object pointing to the specified host
Qsmtp(String hostid, int port)
           
 
Method Summary
 void close()
           
 void sendmsg(String from_address, String to_address, String subject, String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Qsmtp

public Qsmtp(String hostid)
      throws UnknownHostException,
             IOException
Create a Qsmtp object pointing to the specified host

Parameters:
hostid - The host to connect to.
Throws:
UnknownHostException
IOException

Qsmtp

public Qsmtp(String hostid,
             int port)
      throws UnknownHostException,
             IOException
Throws:
UnknownHostException
IOException

Qsmtp

public Qsmtp(InetAddress address)
      throws IOException
Throws:
IOException

Qsmtp

public Qsmtp(InetAddress address,
             int port)
      throws IOException
Throws:
IOException
Method Detail

sendmsg

public void sendmsg(String from_address,
                    String to_address,
                    String subject,
                    String message)
             throws IOException,
                    ProtocolException
Throws:
IOException
ProtocolException

close

public void close()