Version Description
- 2018-07-23 Removed deprecated functions from 7.2 + comment unready feature
Download this release
Release Info
Developer | yehudah |
Plugin | Post SMTP Mailer/Email Log |
Version | 1.9.2 |
Comparing to | |
See all releases |
Code changes from version 1.9.1 to 1.9.2
- Postman/Postman-Configuration/PostmanSmtpDiscovery.php +2 -2
- Postman/Postman-Mail/PostmanMessage.php +1 -1
- Postman/Postman.php +0 -1
- Postman/PostmanWpMail.php +1 -1
- postman-smtp.php +2 -2
- readme.txt +4 -1
Postman/Postman-Configuration/PostmanSmtpDiscovery.php
CHANGED
@@ -84,7 +84,7 @@ if (! class_exists ( 'PostmanSmtpMappings' )) {
|
|
84 |
);
|
85 |
public static function getSmtpFromEmail($hostname) {
|
86 |
reset ( PostmanSmtpMappings::$emailDomain );
|
87 |
-
|
88 |
if (strcasecmp ( $hostname, $domain ) == 0) {
|
89 |
return $smtp;
|
90 |
}
|
@@ -93,7 +93,7 @@ if (! class_exists ( 'PostmanSmtpMappings' )) {
|
|
93 |
}
|
94 |
public static function getSmtpFromMx($mx) {
|
95 |
reset ( PostmanSmtpMappings::$mxMappings );
|
96 |
-
|
97 |
if (PostmanUtils::endswith ( $mx, $domain )) {
|
98 |
return $smtp;
|
99 |
}
|
84 |
);
|
85 |
public static function getSmtpFromEmail($hostname) {
|
86 |
reset ( PostmanSmtpMappings::$emailDomain );
|
87 |
+
foreach ( PostmanSmtpMappings::$emailDomain as $domain => $smtp ) {
|
88 |
if (strcasecmp ( $hostname, $domain ) == 0) {
|
89 |
return $smtp;
|
90 |
}
|
93 |
}
|
94 |
public static function getSmtpFromMx($mx) {
|
95 |
reset ( PostmanSmtpMappings::$mxMappings );
|
96 |
+
foreach ( PostmanSmtpMappings::$mxMappings as $domain => $smtp ) {
|
97 |
if (PostmanUtils::endswith ( $mx, $domain )) {
|
98 |
return $smtp;
|
99 |
}
|
Postman/Postman-Mail/PostmanMessage.php
CHANGED
@@ -61,7 +61,7 @@ if ( ! class_exists( 'PostmanMessage' ) ) {
|
|
61 |
|
62 |
function __call($name, $args) {
|
63 |
$class = new ReflectionClass(__CLASS__);
|
64 |
-
$methods = $class->getMethods(ReflectionMethod::IS_PUBLIC);
|
65 |
|
66 |
$message = __( '<code>%1$s</code> method of a <code>PostmanMessage</code> object is <strong>not supported</strong>. Use one of the following methods <pre><code>%2$s</code></pre>', Postman::TEXT_DOMAIN );
|
67 |
|
61 |
|
62 |
function __call($name, $args) {
|
63 |
$class = new ReflectionClass(__CLASS__);
|
64 |
+
$methods = $class->getMethods(ReflectionMethod::IS_PUBLIC );
|
65 |
|
66 |
$message = __( '<code>%1$s</code> method of a <code>PostmanMessage</code> object is <strong>not supported</strong>. Use one of the following methods <pre><code>%2$s</code></pre>', Postman::TEXT_DOMAIN );
|
67 |
|
Postman/Postman.php
CHANGED
@@ -470,4 +470,3 @@ if ( ! function_exists( 'str_getcsv' ) ) {
|
|
470 |
return PostmanUtils::postman_strgetcsv_impl( $string );
|
471 |
}
|
472 |
}
|
473 |
-
|
470 |
return PostmanUtils::postman_strgetcsv_impl( $string );
|
471 |
}
|
472 |
}
|
|
Postman/PostmanWpMail.php
CHANGED
@@ -166,7 +166,7 @@ if ( ! class_exists( 'PostmanWpMail' ) ) {
|
|
166 |
// apply the WordPress filters
|
167 |
// may impact the from address, from email, charset and content-type
|
168 |
$message->applyFilters();
|
169 |
-
do_action_ref_array( 'phpmailer_init', array( &$message ) );
|
170 |
|
171 |
// create the body parts (if they are both missing)
|
172 |
if ( $message->isBodyPartsEmpty() ) {
|
166 |
// apply the WordPress filters
|
167 |
// may impact the from address, from email, charset and content-type
|
168 |
$message->applyFilters();
|
169 |
+
//do_action_ref_array( 'phpmailer_init', array( &$message ) );
|
170 |
|
171 |
// create the body parts (if they are both missing)
|
172 |
if ( $message->isBodyPartsEmpty() ) {
|
postman-smtp.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Post SMTP
|
5 |
* Plugin URI: https://wordpress.org/plugins/post-smtp/
|
6 |
* 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!
|
7 |
-
* Version: 1.9.
|
8 |
* Author: Jason Hendriks, Yehuda Hassine
|
9 |
* Text Domain: post-smtp
|
10 |
* Author URI: https://postmansmtp.com
|
@@ -123,5 +123,5 @@ function post_start( $startingMemory ) {
|
|
123 |
*/
|
124 |
function post_setupPostman() {
|
125 |
require_once 'Postman/Postman.php';
|
126 |
-
$kevinCostner = new Postman( __FILE__, '1.9.
|
127 |
}
|
4 |
* Plugin Name: Post SMTP
|
5 |
* Plugin URI: https://wordpress.org/plugins/post-smtp/
|
6 |
* 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!
|
7 |
+
* Version: 1.9.2
|
8 |
* Author: Jason Hendriks, Yehuda Hassine
|
9 |
* Text Domain: post-smtp
|
10 |
* Author URI: https://postmansmtp.com
|
123 |
*/
|
124 |
function post_setupPostman() {
|
125 |
require_once 'Postman/Postman.php';
|
126 |
+
$kevinCostner = new Postman( __FILE__, '1.9.2' );
|
127 |
}
|
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: 4.9.5
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -296,6 +296,9 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
|
|
296 |
|
297 |
|
298 |
== Changelog ==
|
|
|
|
|
|
|
299 |
= 1.9.1 - 2018-07-22
|
300 |
Syntx stupid mistake
|
301 |
|
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: 4.9.5
|
7 |
+
Stable tag: 1.9.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
296 |
|
297 |
|
298 |
== Changelog ==
|
299 |
+
= 1.9.2 - 2018-07-23
|
300 |
+
Removed deprecated functions from 7.2 + comment unready feature
|
301 |
+
|
302 |
= 1.9.1 - 2018-07-22
|
303 |
Syntx stupid mistake
|
304 |
|