Hallo…I trying to set up a sample app with veil. Sending email with mailgun. I do get this error:
Request: POST /veil/users
** (exit) an exception was raised:
** (ArgumentError) expected [:domain] to be set, got: [adapter: Swoosh.Adapters.Mailgun, api_key: “key-XXXXXX”, otp_app: :veil]
(swoosh) lib/swoosh/adapters/mailgun.ex:21: Swoosh.Adapters.Mailgun.raise_on_missing_config/2
(swoosh) lib/swoosh/mailer.ex:102: Swoosh.Mailer.deliver/2
in config I have:
email_from_name: “Werner Laude”,
session_expiry: 86_400 * 30,
config :veil, PasswordlessWeb.Veil.Mailer,
Anyone can give me a hint where to look…
I don’t run mailgun, but…
This implies that there is supposed to be a
domain: blah key/value in your configuration there?
That’s what I thought too. It is not marked in the veil docu…
When I add my domain, no success …
The mailgun side is fine…and verified…
Thanks so far, may be check some other solution…
It seems the error is in swoosh, and here it shows
domain being set https://hexdocs.pm/swoosh/Swoosh.Adapters.Mailgun.html#content
Have you tried it without veil, just using swoosh to send an email with that config?
I added the domain…
But I get tons of errors…
There is also a: # lib/sample/mailer.ex in the swoosh doc
But I think this is handled by veil…?
May be an idea to try swoosh first.
Thanks so far. As a beginner all is complicated