Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

mailgun

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

like image 883
flower Avatar asked May 30 '17 08:05

flower


5 Answers

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.

like image 76
Brett Y Avatar answered Oct 22 '22 12:10

Brett Y


in 2019 is:

Click to your domain, and you see at the right the Authorized Recepients box

enter image description here

like image 29
Artur Mamedov Avatar answered Oct 22 '22 10:10

Artur Mamedov


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.

like image 2
Najathi Avatar answered Oct 22 '22 10:10

Najathi


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.

like image 1
chris342423 Avatar answered Oct 22 '22 12:10

chris342423


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.

like image 1
Arnaud P Avatar answered Oct 22 '22 10:10

Arnaud P