• Resolved mediteranija

    (@mediteranija)


    I’d like to use 2 different Mailgun connections at the same time. One connection would be connected to domain1.com with SecretKey1 and the other to domain2.com with SecretKey2.

    If I put in wp-config.php two separate Mailgun define rules (one rule for each domain), then it will ALWAYS route email through the 1st rule only.

    Is it possible to use something like this:

    /* 1st Mailgun Connection */
    define( ‘FLUENTMAIL_MAILGUN_API_KEY_1’, ‘secret1’ );
    define( ‘FLUENTMAIL_MAILGUN_DOMAIN_1’, ‘domain1.com’ );

    /* 2nd Mailgun Connection */
    define( ‘FLUENTMAIL_MAILGUN_API_KEY_2’, ‘secret2’ );
    define( ‘FLUENTMAIL_MAILGUN_DOMAIN_2’, ‘domain2.com’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mediteranija

    (@mediteranija)

    I got an answer from the dev on the Facebook and it goes like this:

    Currently, the constant define works only the first connection for each integration. But feel free to use the DB method as it’s safe to use. From the last version, all the keys are encrypted in the database so even your DB get compromised, hacker can’t decrypt the key.

    So, this thread is successfully resolved. Just use the database for Mailgun or other connections for now. I hope they’ll introduce the possibility of setting up more than one connection in wp-config.php one day.

    hi, is it possible to use more than one gmail/google workspace on same domain/setup?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2 Separate Mailgun Connections At The Same Time’ is closed to new replies.