Allow /dev/mailbox
in prod
#2708
Labels
discussion
Discussion needed to hash out more details prior to development
/dev/mailbox
in prod
#2708
#2700 introduced a
MAIL_PROVIDER
env var which specifies which email provider to use.The providers are essentially all the adapters supported by Swoosh: https://hexdocs.pm/swoosh/Swoosh.html#module-adapters
So far, lightning only supports
mailgun
andsmtp
.Swoosh also supports the
local
adapter, https://hexdocs.pm/swoosh/Swoosh.Adapters.Local.html, which is meant for use indev
.When using this adapter, the user can get access to the emails directly from the same host via
/dev/mailbox
.At the moment, this route is controlled at compile time and only availed in
dev
Given that
MAIL_PROVIDER
defaults tolocal
, regardless of the compile env, should we not make available/dev/mailbox
to all compile envs?Ideally, instead of it being controlled by the compile env, it should be based on the value of
MAIL_PROVIDER
The text was updated successfully, but these errors were encountered: