Working with a Java Mail Server for Testing

前端 未结 5 1813
南笙
南笙 2021-01-02 03:33

I\'m in the process of testing an application that takes mail out of a mailbox, performs some action based on the content of that mail, and then sends a response mail depend

5条回答
  •  庸人自扰
    2021-01-02 04:03

    There is also very simple in use GreenMail which was designer as a mail server for automatic "unit" tests.

    From projects web page (probably there are some others tools with sending/receiving functionality nowadays):

    GreenMail is an open source, intuitive and easy-to-use test suite of email servers for testing purposes. Supports SMTP, POP3, IMAP with SSL socket support. GreenMail also provides a JBoss GreenMail Service. GreenMail is the fist and only library that offers a test framework for both receiving and retrieving emails from Java.

提交回复
热议问题