cc.glsn
Class Qsmtp
java.lang.Object
cc.glsn.Qsmtp
public class Qsmtp
- extends Object
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
sendmsg
public void sendmsg(String from_address,
String to_address,
String subject,
String message)
throws IOException,
ProtocolException
- Throws:
IOException
ProtocolException
close
public void close()