一个简单的本地SMTP服务器 [英] A simple local SMTP server

查看:648
本文介绍了一个简单的本地SMTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I want to test a Java code for sending email. I don't want to use any commercial mail client or connect to any external mail providers (like Gmail or Yahoo). I would like to know if there is any software which allows a user to configure dummy email addresses and server (locally) which can be used in my software to send and receive mails. I just want to test the functionality of the Java code.

推荐答案

对于电子邮件测试,尝试 Dumbster 。从该页面:

For email testing, try Dumbster. From that page:


Dumbster是一款非常简单的假SMTP服务器,专为单元和
系统测试应用程序而设计,发送电子邮件。它响应
所有标准SMTP命令,但不向用户传递消息。
这些消息存储在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.

Dumbster非常容易插入您的测试策略。作为
,只要您的应用程序与使用SMTP的电子邮件服务器进行交谈,那么
Dumbster可用于测试应用程序,而无需更改代码。

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.

这篇关于一个简单的本地SMTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆