public class Qsmtp extends Object
Constructor and Description |
---|
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) |
public Qsmtp(String hostid) throws UnknownHostException, IOException
hostid
- The host to connect to.UnknownHostException
IOException
public Qsmtp(String hostid, int port) throws UnknownHostException, IOException
UnknownHostException
IOException
public Qsmtp(InetAddress address) throws IOException
IOException
public Qsmtp(InetAddress address, int port) throws IOException
IOException
public void sendmsg(String from_address, String to_address, String subject, String message) throws IOException, ProtocolException
IOException
ProtocolException
public void close()