|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mentata.sg8.SG8Email
A utility class for sending email messages.
| Constructor Summary | |
SG8Email(String from)
Constructs a new email message to send via localhost. |
|
SG8Email(String from,
String host)
Constructs a new email message. |
|
| Method Summary | |
void |
deliver()
Delivers the message and then closes the mail server connection. |
PrintStream |
getBodyStream()
Returns a stream for writing the message body. |
void |
setSubject(String subject)
Set the email subject header. |
void |
setTo(String[] to)
Set the email to addresses and header. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SG8Email(String from)
throws SG8Exception
from - a sender email address
SG8Exception - if the mail server does not respond
public SG8Email(String from,
String host)
throws SG8Exception
from - a sender email addresshost - a mail server
SG8Exception - if the mail server does not respond| Method Detail |
public void setTo(String[] to)
throws SG8Exception
SG8Exception - if the mail server does not accept the to addressespublic void setSubject(String subject)
public PrintStream getBodyStream()
throws SG8Exception
SG8Exception - if the mail server reports a problem
public void deliver()
throws SG8Exception
SG8Exception - if the mail server reports a problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||