|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectimcode.util.net.SMTP
public class SMTP
class SMTP - Provides methods for sending mail.
| Nested Class Summary | |
|---|---|
static class |
SMTP.Mail
|
| Constructor Summary | |
|---|---|
SMTP(java.lang.String host,
int port)
Connects to an SMTP-server |
|
| Method Summary | |
|---|---|
void |
sendMail(SMTP.Mail mail)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMTP(java.lang.String host,
int port)
host - The address of the server.port - The port of the server, usually 25.
java.lang.IllegalArgumentException - Thrown when given a timeout of zero or less.| Method Detail |
|---|
public void sendMail(SMTP.Mail mail)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||