PHPackages                             sanchothefat/sparkpost-wp-mail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sanchothefat/sparkpost-wp-mail

ActiveWordpress-muplugin

sanchothefat/sparkpost-wp-mail
==============================

wp\_mail() drop-in for SparkPost

462[2 PRs](https://github.com/roborourke/sparkpost-wp-mail/pulls)PHP

Since Jun 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/roborourke/sparkpost-wp-mail)[ Packagist](https://packagist.org/packages/sanchothefat/sparkpost-wp-mail)[ RSS](/packages/sanchothefat-sparkpost-wp-mail/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SparkPost WP Mail Dropin
========================

[](#sparkpost-wp-mail-dropin)

Dropin wp\_mail() replacement for WordPress that uses the SparkPost.com API.

Heavily based on prior art by [@danielbachhuber](https://github.com/danielbachhuber) for [Mandrill](https://github.com/danielbachhuber/mandrill-wp-mail)

How to Use
----------

[](#how-to-use)

To implement this drop-in, add it to your `mu-plugins` directory. In order for it to work, you must define your Mandrill API key. The easiest way to do this is to add it to your `wp-config.php` file like so:

`define( 'SPARKPOST_API_KEY', 'your-api-key' );`

If you've cloned this repo into your mu-plugins directory as the full folder (e.g. `wp-content/mu-plugins/mandrill-wp-mail`, you'll need to make sure you load the plugin files:

```
