# Send all emails via Mailgun

**URL:** <https://forum.ghost.org/t/send-all-emails-via-mailgun/30785>\
**Category:** Installation\
**Created:** [June 14, 2022, 10:39am UTC](https://forum.ghost.org/t/send-all-emails-via-mailgun/30785 "2022-06-14T10:39:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saluki](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/saluki/32/18181_2.png) [@Saluki](https://forum.ghost.org/u/Saluki)\
**Post date:** [June 14, 2022, 10:39am UTC](https://forum.ghost.org/t/send-all-emails-via-mailgun/30785/1 "2022-06-14T10:39:29Z")

</div>

Is it possible to route all emails through Mailgun? Currently newsletters go through fine, but login links end up in spam - I believe they do not get sent via Mailgun at all. Does anyone know how I would go about changing this?

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 14, 2022, 12:23pm UTC](https://forum.ghost.org/t/send-all-emails-via-mailgun/30785/2 "2022-06-14T12:23:03Z")

</div>

Yes, you can. Transactional emails are configured in `ghost.production.json`.

Scroll down to the end of the Mail section.

> **[Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/)**
>
> Find out how to configure your Ghost publication or override Ghost's default behaviour with robust config options, including mail, storage, scheduling and more!
