Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ahsenrdp's avatar

Please add your own domain or add the address to authorized recipients in Account Settings. (code 403).

Mailgun is working fine in localhost, but in live server it showing error like given below

Unable to send an email: Domain sandbox7eee6ee6846a4b5fa920bcf2cfaa588e.mailgun.org is not allowed to send: Sandbox subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in Account Settings. (code 403).

Please let me know how to fix this issue

0 likes
3 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Add your own domain and send from that. Go to Sending->Domains and click "Add new domain" and add your domain

tykus's avatar

Sandbox subdomains are for test purposes only

You are trying to use the sandbox in a production environment; it is not permitted to send real emails, only for testing purposes.

Please or to participate in this conversation.