Mailgun + veil ArgumentError - expected [:domain] to be set

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:
config :veil,
site_name: “”,
email_from_name: “Werner Laude”,
email_from_address: "",
sign_in_link_expiry: 3_600,
session_expiry: 86_400 * 30,
refresh_expiry_interval: 86_400

config :veil, PasswordlessWeb.Veil.Mailer,
#adapter: Swoosh.Adapters.Local
adapter: Swoosh.Adapters.Mailgun,
api_key: “key-XXXXXXX”

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
Have you tried it without veil, just using swoosh to send an email with that config?

I added the domain…
api_key: “my-api-key”,
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