diff --git a/admin.widget.class.php b/admin.widget.class.php
index 84726628..2b88e7a0 100644
--- a/admin.widget.class.php
+++ b/admin.widget.class.php
@@ -104,7 +104,7 @@ public function wpsp_admin_page()
-
Test Email
+ Test Email
test_email_sending($_POST['to_email'], !empty($_POST['enable_debugging']));
diff --git a/mailer.http.class.php b/mailer.http.class.php
index 47542970..b485b70f 100644
--- a/mailer.http.class.php
+++ b/mailer.http.class.php
@@ -18,6 +18,10 @@ function __construct($exceptions = false)
parent::__construct($exceptions);
}
+ function mailSend($header, $body) { /** TODO check if need to use $header, $body */
+ return $this->sparkpostSend();
+ }
+
function sparkpostSend()
{
$this->edebug('Preparing request data');
@@ -147,8 +151,8 @@ protected function handle_response($response)
return false;
}
- $this->edebug('Response headers: ' . print_r($result['headers'], true));
- $this->edebug('Response body: ' . print_r($result['body'], true));
+ $this->edebug('Response headers: ' . print_r($response['headers'], true));
+ $this->edebug('Response body: ' . print_r($response['body'], true));
$body = json_decode($response['body']);
if (property_exists($body, 'errors')) {
diff --git a/readme.txt b/readme.txt
index 713501c4..294e684f 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,7 +3,7 @@ Contributors: sparkpost, rajuru
Tags: sparkpost, smtp, wp_mail, mail, email
Requires at least: 4.0
Tested up to: 4.4.2
-Stable tag: 2.2.0
+Stable tag: 2.2.1
License: GPLv2 or later
Send all your email from Wordpress through SparkPost, the most advanced email delivery service.
@@ -47,6 +47,9 @@ Visit our [support site](https://support.sparkpost.com/) for help.
== Changelog ==
+= 2.2.1 =
+- Fix issue for previous version of WordPress
+
= 2.2.0 =
- Add template field for selecting a SparkPost template when using HTTP API
- Allow substituion of Subject, From name in HTTP API
diff --git a/wordpress-sparkpost.php b/wordpress-sparkpost.php
index dc700352..cd2ea47f 100644
--- a/wordpress-sparkpost.php
+++ b/wordpress-sparkpost.php
@@ -6,7 +6,7 @@
Plugin Name: SparkPost
Plugin URI: http://sparkpost.com/
Description: Send all your email from Wordpress through SparkPost, the world's most advanced email delivery service.
-Version: 2.2.0
+Version: 2.2.1
Author: SparkPost
Author URI: http://sparkpost.com
License: GPLv2 or later