# Mailgun

## Configuration

In the [AcyMailing](https://www.acymailing.com/) configuration, tab Mail settings, you can choose this sending method.

![AcyMailing configuration](/files/-MQXqm_fX565kXos7Xzo)

## Credentials

In order to [send with Mailgun](https://www.acymailing.com/how-to-setup-mailgun-for-wordpress/), you will need a Mailgun account and to create a domain.

In your Mailgun account, access the "Sending" part and create a domain if not done. Copy the domain to put it in the [AcyMailing](https://www.acymailing.com/) configuration along with the region of the domain (US or EU).

![](/files/-MQXrqUbZQsdz2dHKjr3)

Once you've set up your domain you need to create a new sending api key, to do it, open the **Sending** menu, click on **Domain settings** and then click on **Sending API keys**:

![](/files/iNowd5HOpF4bpWnkEmi1)

You can now click on the button **Add sending key** and enter a name:

![](/files/2suTDiLStWholxq3Zsl8)

Then click on the button **Create sending key** and copy the API key created and paste it on your AcyMailing configuration:

![](/files/KqOwFymmr4uGfybKLy1e)

We've a more detailed article here if you need more information: [Read the article](https://www.acymailing.com/how-to-setup-mailgun-for-wordpress/)


---

# 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.acymailing.com/external-sending-method/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.
