camann9
camann9
Search for an API that allows test mail creation in an easy way or create one. Example: ``` mail().withHtml("").withText("test").withAttachment("file.txt", "test") ```
Create asserts that check mail reception. Could be similar to Wiremock. ``` verify(mailReceived() .to("[email protected]") .from("[email protected]") .withHeader("Message-ID", matching(".*@MYSERVER"))); ```
There should be a way to describe events (e.g. reception of an email from an unknown user) and actions that happen when the condition is fulfilled. Example: ``` when(mailReceived() .to(".*@test.com")).createUser("${mail.to}");...
Greenmail was written with JavaMail as the primary client. Nonetheless it would be nice if users would be able to connect to Greenmail using a mail client of their choice....
- Separate message creation, sending and checking - Should be backwards compatible (deprecate GreenMailUtil with reference to new classes) - Think about integrating another API for creating messages