Where to get my SMTP credentials for Mailgun Configuration?

Last update: 28/Nov/2024

1. Log in

  1. Go to https://app.mailgun.com and sign in.

2. Open the Profile Menu

  1. In the top-right corner, click your Profile Menu (your avatar / initials).

3. Go to API Security

  1. From the dropdown, select API Security.
  2. (Direct link if logged in: https://app.mailgun.com/settings/api_security )

4. View Keys Page

  1. On the API Security page, you’ll see:
  2. Verifications Public Key (for email validation)
  3. HTTP Webhook Signing Key (for signed webhook requests)
  4. Mailgun API Keys (this is the important one)

5. Create a New API Key

  1. Click Add new key.
  2. Choose a name/label for your key (to identify later).
  3. Click Create Key.
Create Mailgun API Key

6. Copy & Store the Key

  1. Once generated, Mailgun will only show the key once.
  2. Copy it and store it securely.
Tip: Use separate API keys for production and staging, and keep them in a secrets manager or your app’s environment variables.

7. Admin Panel Setup

In the admin panel, go to Marketing -> Mailgun Configuration paste the Mailgun API Key and Mailgun From Email in the respective fields. Then, click Update to save your changes

Mailgun Configuration in admin