|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.locomotive.server.SMTPClient
This class can be used to have the VM deliver an email to an external SMTP server - typically UNIX sendmail.
| Constructor Summary | |
SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text)
Creates a new SMTPClient. |
|
SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text,
int id)
Creates a new SMTPClient. |
|
SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text,
int id,
java.lang.String helo)
Deprecated. - This was added to get around bugs that some sites have been having, thought to be a problem with the JDK or Solaris. You probably don't need it. |
|
SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text,
int id,
java.lang.String to_attach,
java.lang.String filename)
Creates a new SMTPClient, with an attachment. |
|
| Method Summary | |
void |
go(Log log,
boolean use_own_thread)
Starts the delivery process. |
void |
run()
required to implement Runnable, to allow sending mail messages on their own thread. |
void |
setTimeout(int seconds)
set the number of seconds before the Mail client will stop trying the send the message |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text)
svrname - the name of the SMTP serversvrport - the port the server is listening on for requeststo - the email address to send the message tofrom - the email address the the message is fromsubject - the subject of the messagebody_text - the main text of the message
public SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text,
int id)
svrname - the name of the SMTP serversvrport - the port the server is listening on for requeststo - the email address to send the message tofrom - the email address the the message is fromsubject - the subject of the messagebody_text - the main text of the messageid - a number to identify this client by for logging purposes
public SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text,
int id,
java.lang.String helo)
svrname - the name of the SMTP serversvrport - the port the server is listening on for requeststo - the email address to send the message tofrom - the email address the the message is fromsubject - the subject of the messagebody_text - the main text of the messageid - a number to identify this client by for logging purposeshelo - the name of the client host to be used for the SMTP
HELO handshake. If it has the value "use_lookup"
the SMTPClient will attempt a name lookup on the localhost.
This is the default behavior for the other constructors.
public SMTPClient(java.lang.String svrname,
int svrport,
java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body_text,
int id,
java.lang.String to_attach,
java.lang.String filename)
svrname - the name of the SMTP serversvrport - the port the server is listening on for requeststo - the email address to send the message tofrom - the email address the the message is fromsubject - the subject of the messagebody_text - the main text of the messageid - a number to identify this client byto_attach - the text of the attachmentfilename - the name of the file the attachment text was read
in from| Method Detail |
public void setTimeout(int seconds)
public void go(Log log,
boolean use_own_thread)
public void run()
go(org.locomotive.server.Log, boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||