public class OrigamiSMTP extends Object
| Constructor and Description |
|---|
OrigamiSMTP(int port)
Creates an instance opened to the specified port
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusListener(StatusListener sl)
Adds a status listener
|
void |
closeSMTP()
Closes the SMTP connection
|
static void |
main(String[] args)
Starts the server.
|
void |
startSMTP()
Starts the SMTP server
|
public OrigamiSMTP(int port)
port - The port to open SMTP onpublic static void main(String[] args) throws Exception
args - Program argumentsException - Anything that could go wrong with the connectionpublic void addStatusListener(StatusListener sl)
sl - A class that implements StatusListenerpublic void closeSMTP()
public void startSMTP()
throws BindException
BindException - Failure to bind to portCopyright © 2019. All rights reserved.