# Mailgun Setup

{% hint style="info" %}
Gravity supports any email service supported by [Nodemailer](https://nodemailer.com/). If you don't want to use Mailgun please refer to the [Email Notifications](https://docs.usegravity.app/gravity-server/email-notifications) section for instructions on how to change to another provider.&#x20;
{% endhint %}

[Mailgun](https://mailgun.com/) is an easy-to-use and very cost-effective transactional email provider with great analytics tools.&#x20;

## 1. Register a Mailgun Account

Head over to [Mailgun](https://signup.mailgun.com/new/signup) and [register your account.](https://signup.mailgun.com/new/signup)

## 2. Setup Your Domain

Follow the [Mailgun setup instructions](https://documentation.mailgun.com/en/latest/quickstart-sending.html) to set up and verify your domain.

You will also need access to your domain control panel to edit the DNS settings. It can take up to 48 hours for your domain to be verified but usually only takes a few minutes.

## 3. Copy Your API Key

Log into your [Mailgun dashboard](https://app.mailgun.com/app/dashboard) and copy your private API key from the sidebar. You'll need this in the next step.
