Page MenuHomePhabricator

Mailgun extension should allow use of other alternate mailgun api endpoints
Closed, ResolvedPublic

Description

Mailgun now offers multiple API endpoints.
The extension is currently hardcoded to only one.

Need to make use of this feature of the sdk
https://github.com/mailgun/mailgun-php/blob/master/src/Mailgun.php#L68
For users that select the non default api location for mailgun (such as EU).

Otherwise email sending will fail, if these API endpoints are used

Acceptance Criteria:

  • It is possible to configure which Mailgun API is used by the extension (default remains the same)

Event Timeline

Reedy renamed this task from Mailgun extension should allow use other alternate mailgun api endpoints to Mailgun extension should allow use of other alternate mailgun api endpoints.Oct 24 2019, 3:43 PM

We might be able to make this a Google-Code-in-2019 task as well. Probably once we upgrade the composer library, $mailgunAPIEndpoint as a parameter to the conf and probably some edits on https://github.com/wikimedia/mediawiki-extensions-Mailgun/blob/master/MailgunHooks.php#L54 ?

Change 730842 had a related patch set uploaded (by Addshore; author: Addshore):

[integration/config@master] zuul: mw-ext-MailGun will need PHP 7.3+

https://gerrit.wikimedia.org/r/730842

Change 730842 merged by jenkins-bot:

[integration/config@master] zuul: mw-ext-MailGun will need PHP 7.3+

https://gerrit.wikimedia.org/r/730842

Mentioned in SAL (#wikimedia-releng) [2021-10-14T16:13:00Z] <addshore> reloaded zuul for zuul: mw-ext-MailGun will need PHP 7.3+ T236396

Change 730865 had a related patch set uploaded (by Deniz Erdogan; author: Deniz Erdogan):

[mediawiki/extensions/Mailgun@master] Add option to configure custom Mailgun API endpoint

https://gerrit.wikimedia.org/r/730865

Change 730865 merged by jenkins-bot:

[mediawiki/extensions/Mailgun@master] Add option to configure custom Mailgun API endpoint

https://gerrit.wikimedia.org/r/730865

Change 730972 had a related patch set uploaded (by Addshore; author: Phantom42):

[mediawiki/extensions/Mailgun@REL1_37] SQUASH: PHPUnit Tests, SDK Update & API Option

https://gerrit.wikimedia.org/r/730972

Change 730973 had a related patch set uploaded (by Addshore; author: Addshore):

[mediawiki/extensions/Mailgun@REL1_36] SQUASH: PHPUnit Tests, SDK Update & API Option

https://gerrit.wikimedia.org/r/730973

Change 730974 had a related patch set uploaded (by Addshore; author: Addshore):

[mediawiki/extensions/Mailgun@REL1_35] SQUASH & Alter: PHPUnit Tests, SDK Update & API Option

https://gerrit.wikimedia.org/r/730974

Change 730972 merged by jenkins-bot:

[mediawiki/extensions/Mailgun@REL1_37] SQUASH: PHPUnit Tests, SDK Update & API Option

https://gerrit.wikimedia.org/r/730972

Change 730973 merged by jenkins-bot:

[mediawiki/extensions/Mailgun@REL1_36] SQUASH: PHPUnit Tests, SDK Update & API Option

https://gerrit.wikimedia.org/r/730973

Change 730974 merged by jenkins-bot:

[mediawiki/extensions/Mailgun@REL1_35] SQUASH & Alter: PHPUnit Tests, SDK Update & API Option

https://gerrit.wikimedia.org/r/730974