quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.73k stars 2.67k forks source link

Add Email checking widget to DevServices/DevUI #28700

Open GregJohnStewart opened 2 years ago

GregJohnStewart commented 2 years ago

Description

It would be terribly useful to have a widget on DevServices/ dev ui that one could use to see emails that have been sent by the service.

I was thinking something inspired by the MockMailbox utility used for testing; just simple read-only (from dev ui) list of addresses sent to, and the emails that were sent.

This would be way easier than making devs setup their dev instance with an actual email server.

Implementation ideas

Implementation similar to other dev service widgets.

Maybe a flag, similar to quarkus.mailer.mock that would help control this? Or perhaps if that is on, enable this widget?

quarkus-bot[bot] commented 2 years ago

/cc @geoand, @stuartwdouglas

geoand commented 2 years ago

cc @cescoffier

cescoffier commented 2 years ago

Good idea! I wonder if I should wait for @phillip-kruger revamped dev ui first.

GregJohnStewart commented 1 year ago

Circling back, what's the state of things? Is the stage set?

Another ticket was added asking for similar capabilities: https://github.com/quarkusio/quarkus/issues/32894

geoand commented 1 year ago

The new DevUI is in, so it's a matter of priorities now

phillip-kruger commented 1 year ago

@GregJohnStewart Here are the documentation for the new Dev UI if you are keen to do a PR: https://quarkus.io/version/main/guides/dev-ui-v2

GregJohnStewart commented 1 year ago

I can take a stab at it sure. First time for everything :)

phillip-kruger commented 1 year ago

@GregJohnStewart ping me on Zulip if you have questions.

melloware commented 1 year ago

@GregJohnStewart check out my Extension which does exactly that as a DevService with a UI: https://github.com/quarkiverse/quarkus-mailpit

@cescoffier I think this might be closeable as I am pretty sure this is what was intended.

cescoffier commented 12 months ago

@melloware did you integrate the mailpit UI (or at least a mail UI) in the dev UI? We want to unified experience.

codespearhead commented 7 months ago

@cescoffier yes, it's baked into the Dev UI as per this comment.

I wonder if this should be marked as solved now that this PR was merged, because the dependency is from io.quarkiverse.mailpit instead of io.quarkus.