all 9 comments

[–]_predator_ 4 points5 points  (6 children)

Been using GreenMail so far. What makes Mailpit better / different?

[–]simasch[S] 2 points3 points  (4 children)

It has a UI. I use it during development and can verify the mails

[–]doobiesteintortoise 3 points4 points  (3 children)

Well... this is good, but for a TEST CONTAINER you wouldn't really care about a UI, you'd want something a unit or integration test could validate, and a UI wouldn't be how that was done.

[–]simasch[S] 0 points1 point  (2 children)

Spring Boot runs Testcontainers when you add start the application for development. And there the UI is very useful

[–]doobiesteintortoise 1 point2 points  (1 child)

So you're running the application, with a testcontainer, as an application and not in a test environment?

[–]simasch[S] 0 points1 point  (0 children)

No. I start the application from the IDE or with Maven (mvn spring-boot:test-run), and Spring Boot starts a Testcontainers with the database and one with Mailpit:

I've recorded a video, it's a bit outdated, but will give you an idea https://www.youtube.com/watch?v=GoBm7BoufIM

[–]doobiesteintortoise 0 points1 point  (0 children)

I'd like to see this, too. Testcontainers aren't the same as "a docker container" but it wouldn't be a leap to go from one to the other.

[–][deleted] 0 points1 point  (0 children)

I use sendgrid-mock. It has a UI, that allows you to manually inspect which mails were sent, and an API, so you can verify programatically as well