Sandbox subdomains are for test purposes only. Please add your own domain or add the address to recipients in Account Settings

flower picture flower · May 30, 2017 · Viewed 23k times · Source

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."}

Answer

Brett Y picture Brett Y · Jun 30, 2017

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.