liiight/notifiers

Issue with Mailgun provider for EU domains

andreipopovici opened this issue · 0 comments

Describe the bug
Sending via the Mailgun provider from a domain created in the EU fails, since the library assumes the default base_url.

To Reproduce
Using a domain created in the EU, attempt to send a notification using the Mailgun provider.

Expected behavior
The user should be able to pass either the desired base_url or a flag (endpoint = 'default' | 'EU') to choose which API endpoint to use.

Additional context
See https://documentation.mailgun.com/en/latest/api-intro.html#base-url