Make onboarding emails also work via API (not only SMTP)

I notice you’re using a sandbox domain. MG doesn’t allow delivery to anywhere except the addresses registered with it if you’re using the sandbox. If you’ve got a mismatch between the addresses MG thinks are OK for the sandbox and the address you’re trying to sign up, that’s a problem.

You probably want to switch from the sandbox to a real domain, asap.

1 Like

Got it, I will look into that. Thank you for your time!

Edit: The issue was the sandbox domain as you mentioned. I configured my domain in Cloudflare with the settings Mailgun suggested.

And the .env file for Docker looks like this:

mail__transport=mailgun
mail__host=api.mailgun.net
mail__from=bXXXXX@gmail.com
mail__options__auth__api_key=9e60dxxxxxxxxxxxxxxxxxxxxxxxxx-1xxxxx0-f4xxxxx2a
mail__options__auth__domain=mail.myowndomain.com

Seems to work. Thanks, maybe it can help someone else.

1 Like