User Tools

Site Tools

Translations of this page:

Repository plugin: failed to connect to database (SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))


Compatible with version


plugin This plugin sends email through Mailgun using its API. This is for phplist 3.3.1 and later.

By Duncan Cameron

This plugin sends email through Mailgun using its API. Once you have enabled the plugin then phplist will send all emails, campaigns and system emails, using the plugin.

To revert to using either the php mail() function or an SMTP server, as specified in the config.php file, you should disable the plugin.


See the README file on the GitHub page for how to install the plugin.


Settings page

When you have enabled the plugin there will be a Mailgun group on the Settings page where you can configure the plugin.

The base URL can be changed to if you are sending from the EU region.

Within your Mailgun account copy the Private API key value from the API Security page accessed through Settings in the left-side menu.

Enter the Sending Domain that you used when setting-up Mailgun and then had Mailgun verify it.

Send rate

The plugin does not handle the sending rate, which is done by core phpList as for any other method of sending emails. You should set the throttle, batch size, etc to meet any limit set by Mailgun.


Please raise any questions or problems in the user forum

plugin/mailgun.txt · Last modified: 2020/09/22 13:01 by marianaphplist

Contact Us


Boring Bit

phpList is a registered limited company

UK Company No. 07582966

VAT Registration 122 0788 37

© phpList 2016