# Mailgun

## Configuration

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

![AcyMailing configuration](https://963725040-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_D4iy53WFAtKVs3BPA%2F-MQXq10kZL_WHAzerGy0%2F-MQXqm_fX565kXos7Xzo%2Fmailgin_config.png?alt=media\&token=3e06c460-8273-4498-9fbd-f14c8f00b74c)

## 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).

![](https://963725040-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_D4iy53WFAtKVs3BPA%2F-MQXq10kZL_WHAzerGy0%2F-MQXrqUbZQsdz2dHKjr3%2Fmailgun_domain.png?alt=media\&token=7e2af4e3-2f1b-421c-9d68-590f7f98e815)

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**:

![](https://963725040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_D4iy53WFAtKVs3BPA-3566562695%2Fuploads%2FdxP6xXwri1pS7lAHLvhF%2Fsandbox4d38e86f286f4030b706f9d189452609_mailgun_org.png?alt=media\&token=5a532780-0892-4a2a-95c6-ec06c08bbfc2)

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

![](https://963725040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_D4iy53WFAtKVs3BPA-3566562695%2Fuploads%2FBp0vovFGOcHKn5unbaGL%2F2022-08-10%2011.53.43.gif?alt=media\&token=638de9b1-d67d-4d35-aa49-978a19728132)

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

![](https://963725040-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_D4iy53WFAtKVs3BPA-3566562695%2Fuploads%2FBxOw7YFFxKwYQbnBknbt%2Fsandbox4d38e86f286f4030b706f9d189452609_mailgun_org.png?alt=media\&token=420247eb-c6be-489c-aeb4-e9f05d9eec10)

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/)
