Created
February 15, 2011 11:37
-
-
Save chids/827427 to your computer and use it in GitHub Desktop.
SubEthaSMTP usage outline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final SMTPServer server = new SMTPServer(new SimpleMessageListenerAdapter(new SimpleMessageListener() | |
{ | |
@Override | |
public void deliver(final String from, final String recipient, final InputStream data) throws TooMuchDataException, IOException | |
{ | |
System.err.println(from + " -> " + recipient); | |
} | |
@Override | |
public boolean accept(final String from, final String recipient) | |
{ | |
return true; | |
} | |
})); | |
server.setPort(9090); | |
server.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice and simple. Thanks!