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.UnknownHostExceptionIOExceptionpublic Qsmtp(String hostid, int port) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionpublic Qsmtp(InetAddress address) throws IOException
IOExceptionpublic Qsmtp(InetAddress address, int port) throws IOException
IOExceptionpublic void sendmsg(String from_address, String to_address, String subject, String message) throws IOException, ProtocolException
IOExceptionProtocolExceptionpublic void close()