What does the following Mailgun error response mean when one tries to send a message?
Status: 400
Body: {"message": "Sandbox subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in Account Settings."}
Have you set up some authorized recipients for the sandbox domain?
https://documentation.mailgun.com/en/latest/faqs.html#how-do-i-pick-a-domain-name-for-my-mailgun-account
A sandbox subdomain of mailgun.org. Example: sandboxXX.mailgun.org. This option allows for quick testing, without having to setup DNS entries. This domain is provisioned automatically with every new account. But you can send only to authorized recipients.
in 2019 is:
Click to your domain, and you see at the right the Authorized Recepients box
i have faced this problems.
if testing with sandbox, should be add the authorized recipients
.
then copy the sandbox name as a domain.
Thanks you.
Log in to your Mailgun account, go to the log section. There you should see a log entry for the failed attempt to delivery that email. Click on it to see all details. it should display the full error message as well as additional information.
However, most likely you forgot to add that specific email address to the list of authorized email addresses.
Side note: after adding yourself to authorized recipients
, you also need to verify your email address. I almost disregarded the following email as commercial, but in fact I kept getting the error until I agreed:
Hi there,
Mailgun account "[...]" provided your address to test their integration with Mailgun.
Please click the link below if you agree to receive emails from their account.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With