Method Summary |
|
public synchronized Iterator | getReceivedEmail() Get email received by this instance since start up. |
public synchronized int | getReceivedEmailSize() Get the number of messages received. |
public synchronized boolean | isStopped() Check if the server has been placed in a stopped state. |
public void | run() Main loop of the SMTP server. |
public static SimpleSmtpServer | start() Creates an instance of SimpleSmtpServer and starts it. |
public static SimpleSmtpServer | start(int port) Creates an instance of SimpleSmtpServer and starts it. |
public synchronized void | stop() Stops the server. |