# Best practice for getting through Mailgun madness?

**URL:** <https://forum.ghost.org/t/best-practice-for-getting-through-mailgun-madness/56876>\
**Category:** Self-hosting\
**Created:** [April 17, 2025, 9:08am UTC](https://forum.ghost.org/t/best-practice-for-getting-through-mailgun-madness/56876 "2025-04-17T09:08:44Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![eddywashere](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/eddywashere/32/33436_2.png) [@eddywashere](https://forum.ghost.org/u/eddywashere)\
**Post date:** [April 18, 2025, 8:15pm UTC](https://forum.ghost.org/t/best-practice-for-getting-through-mailgun-madness/56876/7 "2025-04-18T20:15:07Z")

</div>

The mail object of your config file should look similar to this format below, with the mailgun account api key there instead of the mailbox user password previously used. Also note that non-eu host setting would be `api.mailgun.net`.

> [@Missing documentation for mail config options – Mailgun API support](https://forum.ghost.org/t/missing-documentation-for-mail-config-options-mailgun-api-support/56481/1):
>
> ```auto
> "mail": {
> "from": "no-reply@domain.xyz",
> "transport": "mailgun",
> "options": {
> "auth": {
> "api_key": "<api_key>",
> "domain": "mg.domain.xyz"
> },
> "host": "api.eu.mailgun.net"
> }
> },
> 
> ```

---

_[View the full topic](https://forum.ghost.org/t/best-practice-for-getting-through-mailgun-madness/56876)._
