Version Description
- 2020-08-12
- Fixed: WordPress 5.5 compatibility (stable)
Download this release
Release Info
Developer | yehudah |
Plugin | Post SMTP Mailer/Email Log |
Version | 2.0.15 |
Comparing to | |
See all releases |
Code changes from version 2.0.14 to 2.0.15
- Postman/Phpmailer/PostsmtpMailer.php +23 -3
- postman-smtp.php +2 -2
- readme.txt +7 -1
Postman/Phpmailer/PostsmtpMailer.php
CHANGED
@@ -3,10 +3,30 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
3 |
exit; // Exit if accessed directly
|
4 |
}
|
5 |
|
6 |
-
if (
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
|
|
|
10 |
add_action('plugins_loaded', function() {
|
11 |
global $phpmailer;
|
12 |
|
@@ -120,7 +140,7 @@ class PostsmtpMailer extends PHPMailer {
|
|
120 |
|
121 |
return $result;
|
122 |
|
123 |
-
} catch (
|
124 |
|
125 |
$this->error = $exc;
|
126 |
|
3 |
exit; // Exit if accessed directly
|
4 |
}
|
5 |
|
6 |
+
if ( version_compare( get_bloginfo( 'version' ), '5.5-alpha', '<' ) ) {
|
7 |
+
if ( ! class_exists( '\PHPMailer', false ) ) {
|
8 |
+
require_once ABSPATH . WPINC . '/class-phpmailer.php';
|
9 |
+
}
|
10 |
+
|
11 |
+
} else {
|
12 |
+
if ( ! class_exists( '\PHPMailer\PHPMailer\PHPMailer', false ) ) {
|
13 |
+
require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
|
14 |
+
}
|
15 |
+
|
16 |
+
if ( ! class_exists( '\PHPMailer\PHPMailer\Exception', false ) ) {
|
17 |
+
require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';
|
18 |
+
}
|
19 |
+
|
20 |
+
if ( ! class_exists( '\PHPMailer\PHPMailer\SMTP', false ) ) {
|
21 |
+
require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
|
22 |
+
}
|
23 |
+
|
24 |
+
class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
|
25 |
+
class_alias( PHPMailer\PHPMailer\SMTP::class, 'SMTP' );
|
26 |
+
class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );
|
27 |
}
|
28 |
|
29 |
+
|
30 |
add_action('plugins_loaded', function() {
|
31 |
global $phpmailer;
|
32 |
|
140 |
|
141 |
return $result;
|
142 |
|
143 |
+
} catch (Exception $exc) {
|
144 |
|
145 |
$this->error = $exc;
|
146 |
|
postman-smtp.php
CHANGED
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
6 |
* Plugin Name: Post SMTP
|
7 |
* Plugin URI: https://wordpress.org/plugins/post-smtp/
|
8 |
* Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes!
|
9 |
-
* Version: 2.0.
|
10 |
* Author: Yehuda Hassine
|
11 |
* Text Domain: post-smtp
|
12 |
* Author URI: https://postmansmtp.com
|
@@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
35 |
define( 'POST_SMTP_BASE', __FILE__ );
|
36 |
define( 'POST_SMTP_PATH', __DIR__ );
|
37 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
38 |
-
define( 'POST_SMTP_VER', '2.0.
|
39 |
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
|
40 |
define( 'POST_SMTP_RELEASE_MESSAGE', "I have released a new Google Analytics AIO plugin, if you liked it please leave a review." );
|
41 |
define( 'POST_SMTP_RELEASE_URL', 'https://wordpress.org/plugins/metrics-query/' );
|
6 |
* Plugin Name: Post SMTP
|
7 |
* Plugin URI: https://wordpress.org/plugins/post-smtp/
|
8 |
* Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes!
|
9 |
+
* Version: 2.0.15
|
10 |
* Author: Yehuda Hassine
|
11 |
* Text Domain: post-smtp
|
12 |
* Author URI: https://postmansmtp.com
|
35 |
define( 'POST_SMTP_BASE', __FILE__ );
|
36 |
define( 'POST_SMTP_PATH', __DIR__ );
|
37 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
38 |
+
define( 'POST_SMTP_VER', '2.0.15' );
|
39 |
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
|
40 |
define( 'POST_SMTP_RELEASE_MESSAGE', "I have released a new Google Analytics AIO plugin, if you liked it please leave a review." );
|
41 |
define( 'POST_SMTP_RELEASE_URL', 'https://wordpress.org/plugins/metrics-query/' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehuda@m
|
|
4 |
Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.5
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -281,6 +281,12 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
|
|
281 |
|
282 |
== Changelog ==
|
283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
= 2.0.13 - 2020-08-11
|
285 |
* Fixed: WordPress 5.5 compatibility
|
286 |
* Fixed: Email log filtering
|
4 |
Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 2.0.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
281 |
|
282 |
== Changelog ==
|
283 |
|
284 |
+
= 2.0.15 - 2020-08-12
|
285 |
+
* Fixed: WordPress 5.5 compatibility (stable)
|
286 |
+
|
287 |
+
= 2.0.14 - 2020-08-11
|
288 |
+
* Removed: WordPress 5.5 compatibility (bug)
|
289 |
+
|
290 |
= 2.0.13 - 2020-08-11
|
291 |
* Fixed: WordPress 5.5 compatibility
|
292 |
* Fixed: Email log filtering
|