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]
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 Swoosh.Adapters.Mailgun — Swoosh v1.26.2
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: “avengers.com”
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