gpt4 book ai didi

java - 一个简单的本地 SMTP 服务器

转载 作者:IT老高 更新时间:2023-10-28 20:45:12 25 4
gpt4 key购买 nike

我想测试一个用于发送电子邮件的 Java 代码。我不想使用任何商业邮件客户端或连接到任何外部邮件提供商(如 Gmail 或 Yahoo)。我想知道是否有任何软件允许用户配置虚拟电子邮件地址和服务器(本地),可以在我的软件中使用它们来发送和接收邮件。我只是想测试一下Java代码的功能。

最佳答案

对于电子邮件测试,请尝试 Dumbster。从他们的页面:

The Dumbster is a very simple fake SMTP server designed for unit and system testing applications that send email messages. It responds to all standard SMTP commands but does not deliver messages to the user. The messages are stored within the Dumbster for later extraction and verification.

The Dumbster slots itself very easily into your testing strategy. As long as your application talks to an email server using SMTP then the Dumbster can be used to test the application with no code changes.

由于原始页面不再可用,因此存在各种 fork :

可以使用 Github Search 找到更多信息

关于java - 一个简单的本地 SMTP 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8599791/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com