Hello,
I’d start with
mix phx.new my_mailer --no-ecto
(–no-ecto broadly speaking means you don’t want a database)
then I’d learn how to implement a json API:
(a tutorial discussed in Building a JSON API in Elixir with Phoenix 1.4+)
or https://elixircasts.io/json-api-with-phoenix-1.4 if are more into video;
then would have a look at
https://hexdocs.pm/phoenix_swoosh/Phoenix.Swoosh.html
as a way for sending mail when a valid requests hits the endpoint you have prepared accordingly to your requirements.
… oh, and I’d also put some kind of basic auth in front of it.
Hth.