0

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!

4

1 回答 1

1

您不需要任何 smtp 命令。查看这个库:GreenMail。您可以将它用于测试目的,它带有服务器和客户端,因此您可以使用服务器版本测试客户端,使用客户端版本测试服务器。查看示例部分。这真的很简单,而且非常有益。它应该提供您完成任务所需的任何东西。

于 2013-10-01T17:21:34.067 回答