com.dalsemi.nethack
Class MailTo

java.lang.Object
  |
  +--com.dalsemi.nethack.MailTo

public class MailTo
extends java.lang.Object

Class to construct and deliver mail messages using the SMTP protocol.


Constructor Summary
MailTo(java.lang.String Recipient)
          Constructs a new mailTo object addressed to the parameter Recipient.
MailTo(java.lang.String Recipient, java.lang.String ccRecipient)
          Constructs a new mailTo object addressed to the parameter Recipient and carbon copied to the recipient(s) ccRecipient.
 
Method Summary
 void connect()
          Not yet implemented
 SmtpPrintStream getOutputStream()
          Start Mail Message and get output stream to socket
 void setUserName(java.lang.String toThis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailTo

public MailTo(java.lang.String Recipient)
Constructs a new mailTo object addressed to the parameter Recipient. Multiple recipients should be separated by commas.
Parameters:
Recipient - recipient or recipients to send the message to

MailTo

public MailTo(java.lang.String Recipient,
              java.lang.String ccRecipient)
Constructs a new mailTo object addressed to the parameter Recipient and carbon copied to the recipient(s) ccRecipient. Multiple recipients should be separated by commas.
Parameters:
Recipient - recipient or recipients to send the message to
ccRecipient - recipient or recipients to carbon copy the message to
Method Detail

setUserName

public void setUserName(java.lang.String toThis)

connect

public void connect()
             throws java.io.IOException
Not yet implemented
Throws:
java.io.IOException -  

getOutputStream

public SmtpPrintStream getOutputStream()
                                throws java.io.IOException
Start Mail Message and get output stream to socket
Returns:
OutputStream to socket
Throws:
java.io.IOException -