---
title: Connect Mailgun to Infoveave
description: Learn how to connect and configure Mailgun in Infoveave to send transactional and marketing emails. Automate email delivery for notifications and reports.
---

import { MediaPlayerComponent } from "../../../../../components/video-player";
import RunScript from "../../../../../components/RunScript.astro";
import { Steps } from '@astrojs/starlight/components';

# Mailgun

<MediaPlayerComponent
  video="MailginConnection.mp4"
    chapters={
[
  {
    "start": 0,
    "end":4,
    "text": "Click Connections under Administration",
    "description": "From the Infoveave menu, click on 'Administration', then select 'Connections' from the dropdown menu to manage your data connections."
  },
  {
    "start": 4,
    "end": 7,
    "text": "Add New Connection",
    "description": "On the 'Connections' page, click the 'New Connections' button located at the top right to open the interface for adding a new datasource connection."
  },
  {
    "start": 7,
    "end": 9,
    "text": "Select Mailgun Connection",
    "description": "In the 'New Connection' window, scroll down to the 'Cloud services' section and click on 'Mailgun' to set up a connection for downloading events and messages from the Mailgun service."
  },
  {
    "start": 9,
    "end": 16,
    "text": "Configure Mailgun Details",
    "description": "In the 'New Connection' dialog box, enter the connection name. Provide your 'Api key' in the designated field and the 'Domain name.'"
  },
  {
    "start": 16,
    "end": 21,
    "text": "Validate Mailgun Connection",
    "description": "Click the 'Validate' button to verify that the provided Mailgun API key and domain name are correct and that Infoveave can successfully connect to the Mailgun service."
  },
  {
    "start": 21,
    "end": 25,
    "text": "Save Mailgun Connection",
    "description": "After the connection is validated successfully, click the 'Save' button to finalize and add the connection to your list of available connections."
  }
]

}
  poster="/images/introduction-poster.png"
  posterText="Creating Mailgun Connection"
  client:load
/>

Mailgun connection helps to connect to Mailgun service to download events and messages for email analytics and automation.

## Adding a Mailgun Connection

To create a new Mailgun connection:

<Steps>
1. Go to **Administration** > **Connections**
2. Click **New Connection** and select **Mailgun** from the available connectors
3. In the **New Mailgun Connection** form, provide the required configuration details
</Steps>

## Connection Parameters

When setting up a Mailgun connection, you need to provide the following details:

| Field | Description |
|-------|-------------|
| **Name** | A unique name to identify your Mailgun connection |
| **API Key** | Your Mailgun service API key for authentication |
| **Domain Name** | Your registered domain name in Mailgun |

## Steps to Validate and Save

<Steps>
1. After configuring your Mailgun connection parameters, click **Validate** to verify the connection
2. If validation succeeds, click **Save** to store the connection
3. You can now use Mailgun as a datasource in your Infoveave workspace
</Steps>

## Example Use Cases

With a Mailgun connection configured, you can:

- Track and analyze email delivery metrics and performance
- Monitor email engagement rates, opens, and clicks in real-time
- Create dashboards for email campaign analytics and reporting
- Automate workflows based on email events and triggers
- Analyze bounce rates and spam complaints for email quality
- Track customer communication patterns and response times
- Generate reports on email marketing campaign effectiveness
- Integrate email analytics with other business intelligence data
- Set up alerts for failed deliveries or unusual email activity
- Correlate email performance with sales and conversion data