|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.SMTPclient
public class SMTPclient
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.SMTPLibrary |
|---|
SMTPLibrary.SMTPClient |
| Field Summary | |
|---|---|
java.io.BufferedReader |
reply
Reply buffer |
java.io.PrintWriter |
send
Send writer |
java.net.Socket |
sock
Socket to use |
| Fields inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.SMTPLibrary |
|---|
DEFAULT_PORT, DEFAULT_TIMEOUT, EOL |
| Constructor Summary | |
|---|---|
SMTPclient()
|
|
SMTPclient(java.net.InetAddress address)
Create a SMTP object pointing to the specified host |
|
SMTPclient(java.net.InetAddress address,
int port)
Create a SMTP object pointing to the specified host |
|
SMTPclient(java.lang.String emailAddress)
|
|
SMTPclient(java.lang.String hostid,
int port)
Create a SMTP object pointing to the specified host |
|
| Method Summary | |
|---|---|
void |
close()
close this socket Usage: this.close(); |
boolean |
emailIfPossible(java.lang.String SMTPServerName,
java.lang.String from,
java.lang.String replyTo,
java.lang.String to,
java.lang.String subject,
java.lang.String message)
|
void |
finalize()
close this socket Usage: finalize(); |
SMTPLibrary.SMTPClient |
getClient(java.lang.String emailAddress)
|
SMTPLibrary.SMTPClient |
getClient(java.lang.String hostid,
int port)
|
java.lang.String |
getListMembers(java.lang.String list)
return members of a list on an email server. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
isValidEmailAddress(java.lang.String addy)
|
void |
sendMessage(java.lang.String froaddress,
java.lang.String reply_address,
java.lang.String to_address,
java.lang.String mockto_address,
java.lang.String subject,
java.lang.String message)
Send a message Usage: Mailer.sendmsg(S, From, To, Subject, Message); |
| Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
|---|
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
|---|
activate, getSupportThread, shutdown |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public java.io.BufferedReader reply
public java.io.PrintWriter send
public java.net.Socket sock
| Constructor Detail |
|---|
public SMTPclient()
public SMTPclient(java.lang.String hostid,
int port)
throws java.net.UnknownHostException,
java.io.IOException
hostid - The host to connect to.
java.net.UnknownHostException
java.io.IOException
public SMTPclient(java.net.InetAddress address)
throws java.io.IOException
address - The host to connect to.
java.io.IOException
public SMTPclient(java.net.InetAddress address,
int port)
throws java.io.IOException
address - The host to connect to.port - The host to connect to.
java.io.IOException
public SMTPclient(java.lang.String emailAddress)
throws java.io.IOException,
BadEmailAddressException
java.io.IOException
BadEmailAddressException| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdLibrary
public SMTPLibrary.SMTPClient getClient(java.lang.String hostid,
int port)
throws java.net.UnknownHostException,
java.io.IOException
getClient in interface SMTPLibraryjava.net.UnknownHostException
java.io.IOException
public SMTPLibrary.SMTPClient getClient(java.lang.String emailAddress)
throws java.io.IOException,
BadEmailAddressException
getClient in interface SMTPLibraryjava.io.IOException
BadEmailAddressException
public boolean emailIfPossible(java.lang.String SMTPServerName,
java.lang.String from,
java.lang.String replyTo,
java.lang.String to,
java.lang.String subject,
java.lang.String message)
emailIfPossible in interface SMTPLibrarypublic boolean isValidEmailAddress(java.lang.String addy)
isValidEmailAddress in interface SMTPLibrary
public void sendMessage(java.lang.String froaddress,
java.lang.String reply_address,
java.lang.String to_address,
java.lang.String mockto_address,
java.lang.String subject,
java.lang.String message)
throws java.io.IOException
sendMessage in interface SMTPLibrary.SMTPClientfroaddress - Address sending fromreply_address - Address reply toto_address - Address sending tomockto_address - Address sending tosubject - Subject linemessage - Message content
java.io.IOException
public java.lang.String getListMembers(java.lang.String list)
throws java.io.IOException,
java.net.ProtocolException
list - member list
java.io.IOException
java.net.ProtocolExceptionpublic void close()
public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||