Mailgun for WordPress
multisite configuration (5 posts)

  1. berlotti
    Posted 2 years ago #

    I have a multisite configuration with different hostnames (using the wordpress-mu-domain-mapping plugin).
    How do I configure mailgun for all domainnames in my network?


  2. ruess
    Posted 2 years ago #

    The instructions in the FAQ aren't very clear. Here's the way it would actually look in your wp-config.php file:

    /* Mailgun Settings */
    define('MAILGUN_USEAPI', '1'); //Set to 1 to override wp_mail and use Mailgun in WPMU (1 or 0)
    define('MAILGUN_APIKEY', '<your api key here>'); //Found in your Mailgun dashboard
    define('MAILGUN_DOMAIN', '<your domain>'); //The domain you setup in Mailgun
    define('MAILGUN_USERNAME', '<Mailgun username>'); //The email address you setup in Mailgun
    define('MAILGUN_PASSWORD', '<password>'); //The corresponding password for the email address in Mailgun
    define('MAILGUN_SECURE', '1'); //If you want to use secure email or not (1 or 0)

    (Don't include the brackets < > in the above code btw)

    Hope this helps!

  3. berlotti
    Posted 2 years ago #

    Just to clarify....
    After this configuration all the top level domains in the network will work on the same mailgun domain?

  4. berlotti
    Posted 2 years ago #

    I'm using multiple top level domains in an network site.
    Does this work?

  5. Patrick Steil
    Posted 1 year ago #

    I am interested in an answer to this as well... wondering if it would be better to setup one mailgun account for all our clients, or setup a separate mailgun account for each since they will all be sending emails for different domains...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Mailgun for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.