Connecting to Mailgun
Mailgun uses API key-based authentication to control access to the API.
Using Token Authentication
To authenticate to Mailgun, you will need to provide an API Key as the password. You can generate or view your API keys under the dropdown next to your account name > 'Account Setting' > 'API Security' > 'Create Key'. Set the Password connection property to your Mailgun API Key.
If the domain is in the EU region, set the IsEU property to True the ProfileSettings connection property.Example Connection String
Profile=C:\profiles\Mailgun.apip;Password='my_api_key'ProfileSettings='IsEU=true';
Connection Properties
The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider.
| Property | Description |
| IsEU | Determines the region of the domain, either US or EU. |
| Password | The API key in your Mailgun account. |
| User | Specifies the authenticating user's user ID. |