GreenMail 测试用的邮件服务器

程序名称:GreenMail

授权协议: 未知

操作系统: 跨平台

开发语言: Java

GreenMail 介绍

GreenMail 是一组主要用来做测试用的邮件服务器,支持 SMTP、POP3、IMAP 等,可以用来嵌入到任何的 Java 程序中。

示例代码

public void testYourSendingCode() throws Exception {  
    GreenMail greenMail = new GreenMail(); //uses test ports by default  
    greenMail.start();  
    GreenMailUtil.sendTextEmailTest("to@localhost.com", "from@localhost.com", "subject", "body"); //replace this with your send code  
    assertEquals("body", GreenMailUtil.getBody(greenMail.getReceivedMessages()[0]));  
    greenMail.stop();  
    // **That's it!**  
 }

GreenMail 官网

http://www.icegreen.com/greenmail/

相关编程语言

VertrigoServ 是一个Windows平台下的非常专业的、易...
APMServ 5.2.0 是一款拥有图形界面的快速搭建Apache...
PHP Manager for IIS 是一个用来在 Windows 平台下的...
LAMPPIX 是一个包含 LAMP 运行环境的可启动 Linux 光...
RubyWorks 是一個在Red Hat Enterprise 或是CentOS ...
Instant Rails是一个一站式的Rails运行环境,包含Ru...