Manual:Mailgun

Mailgun is an API-based tool for sending out emails.

To set it up, you might put something like the following in your LocalSettings.php file. The $wgSMTP option is simplest, but may expose your server's IP address, increasing the risk of DDOS attacks, so therefore you may instead want to use the cURL option. Be sure to change the values of,  , and. To check whether this is exposing your server's IP address, use "show original" (in Gmail) and look for something like the following: X-Mailgun-Sending-Ip: xxx.xx.xxx.xxx X-Mailgun-Sid: ... Received: from localhost (affiliate.test.known.host [xx.xxx.xx.xxx]) by mxa.mailgun.org with ESMTP id ... ; Tue, 27 Sep 2016 20:42:39 -0000 (UTC)

cURL
To use the cURL option, put this in your LocalSettings.php file, being sure to change the values of  and  :

Mailgun extension
See Extension:Mailgun.