Release status: beta
|Description||Allows MediaWiki to use the Mailgun API service to send emails|
|License||GNU General Public License 2.0 or later|
|Quarterly downloads||14 (Ranked 160th)|
|Translate the Mailgun extension if it is available at translatewiki.net|
|Issues||Open tasks · Report a bug|
The Mailgun extension allows MediaWiki to send emails through Mailgun API service.
- Download and place the file(s) in a directory called
- Only when installing from Git, run Composer to install PHP dependencies, by issuing
composer install --no-devin the extension directory. (See task T173141 for potential complications.)
- Add the following code at the bottom of your
wfLoadExtension( 'Mailgun' );
- Configure as required.
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
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
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
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.