# Set up SMTP with Mailgun

![](https://blog.kakaocdn.net/dn/JE9dm/btqv9rNpPiS/y5mzKYzSgwWIfnTMHWr2Bk/img.png)

[Mailgun](https://www.mailgun.com/) is an easy-to-use email service that is oriented towards developers. It provides straightforward API guidelines and interface to make your app to send emails like a boss.

## Get started

![](/files/-MZS86AyBplIydGHFe-3)

Go to the Mailgun website and sign up first. It might require you to verify your mobile phone number and credit card. But once you verify all of these, you will get free 3 months trial, so not a bad deal.

![](/files/-MZS8c0G6unz1uOV0C5i)

Once you finish all verification steps, go to the 'Domains' section at the sidebar, and click 'Add New Domain' to proceed.

![](/files/-MZS90aHpPab8qQY1d7c)

Provide your root domain here. For example, if you want to send emails with `dev@example.com` email, you should type `example.com` here.

![](/files/-MZS9QYls4muMssDnwfl)

![](/files/-MZS9ozXkO5VrGCdFh0N)

Now, based on what it shows, you should add those values to your domain's DNS configuration. Add all of those values step by step, and click verify button at the Mailgun console to go next.

![](/files/-MZSAENRj_MH0FYl8cUW)

![](/files/-MZSAHAOddlbX83SNy4E)

It's mostly done now. Once your domain is verified, click the 'SMTP' menu, and you'll see the credentials for it right away. Based on that, all you need to do is set it up on your HollaEx exchange.

## Configuring the SMTP

![](/files/-MZSB6PhQDeKDcbdJKZK)

Your configuration should be similar to the screenshot above.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hollaex.com/how-tos/set-up-the-smtp-email/set-up-smtp-with-mailgun.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
