Pergunta

I have inherited a java application (.war) that is essentially an smtp client. I can start it up using mvn:jetty run and then telnet successfully to a port that the application opens 8024.

$ telnet localhost 8024 >

However, how can I issue a basic smtp command to test against? I'm still digging though the code but need to know some basic commands to issue for starters and see if it's at least working or responding to basic smtp commands. Thanks!

Foi útil?

Solução

You do not need any smtp commands. Check out this library: GreenMail. You can use it for testing purposes and it comes with a server and a client so you can test a client with the server version and server with the client one. Check out the examples section. It is really straight forward and very rewarding. It should provide anything you need for your task.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top