The module using a very narrow logic to pick the working domain from Mailgun domains, now it picks the closest domain to the domain used with the sender email. I think the module needs to give the site admin a configuration to decide which domain to use to send out the message, or to check the current site domain and match that with mailgun active domains. in our case we have multiple sub-domain domains, a sub-domain for every site dev/staging/production. and we use a sender email that is only matching one of the sub-domains.

Comments

sam2de created an issue. See original summary.

sam2de’s picture

Hi looking back at this, Can a hook be added that let developers alter the working domain. I think it would be beneficial for developers and useful for multi dev environments, I'm happy to contrib a git request for this if that feature is acceptable by the maintainer

bohart’s picture

Priority: Major » Normal

Hi @sam2de,

The active development and maintenance phase of the project started!
Almost all issues were fixed during last week.

If you could take care of this one and propose your solutions, that will be kindly appreciated!

  • bohart committed 8cf92f9 on 7.x-1.x
    Issue #2871893 by bohart: the module picks up the wrong domain.
    
bohart’s picture

Status: Active » Fixed

With the last commit, I have just fixed a notice from phpinspection library was fixed:
Operations priority might differ from what you expect: please wrap needed with (...)

All other works as expected, I'm going to mark this issue as Fixed.
Please reopen otherwise.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.