Extension:Mailgun

Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
Mailgun
Release status: betaCategory:Beta status extensions
Description Allows MediaWiki to use the Mailgun API service to send emails
Author(s)
Latest version 1.0
MediaWiki >= 1.34.0
Database changes No
Composer mailgun/mailgun-php Category:Extensions supporting Composer
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgMailgunDomain
  • $wgMailgunAPIKey
  • $wgMailgunEndpoint
Quarterly downloads 2 (Ranked 90th)
Translate the Mailgun extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The Mailgun extension allows MediaWiki to send emails through Mailgun API service.

Installation

  • Download and move the extracted Mailgun folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Mailgun
  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See T173141 for potential complications.)Category:Extensions requiring Composer with git
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Mailgun' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

You need to have an account on www.mailgun.com and your custom domain verified with it to use Mailgun for sending/receiving mails. Instructions to do the same can be found in the Mailgun documentation.

Security warning: Please do not paste your Mailgun keys directly in your Mailgun/extension.json

Once you have your domain verified, you will get your Mailgun API key to mass send emails. You should configure your API key and domain in LocalSettings.php:

$wgMailgunAPIKey = "key-asdfasdfasdf";
$wgMailgunDomain = "example.in";

Test your settings

Go to Special:EmailUser and send an email to your own address to verify the working of the mailer. You should be able to see logs of email sessions in your Mailgun logs.

See also

Category:All extensions Category:AlternateUserMailer extensions Category:Beta status extensions Category:Extensions in Wikimedia version control Category:Extensions requiring Composer with git Category:Extensions supporting Composer Category:Extensions with invalid or missing type Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions