Version Description
- 2022-12-13 =
- FIX
- Email template HTML was broken
Download this release
Release Info
Developer | wpexpertsio |
Plugin | Post SMTP Mailer/Email Log |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.2.1
- Postman/PostmanWpMail.php +11 -34
- postman-smtp.php +2 -2
- readme.txt +5 -1
Postman/PostmanWpMail.php
CHANGED
@@ -111,47 +111,24 @@ if ( ! class_exists( 'PostmanWpMail' ) ) {
|
|
111 |
* subject, message, headers, and attachments values.
|
112 |
*/
|
113 |
$atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );
|
114 |
-
|
115 |
-
|
116 |
-
* Filters whether to preempt sending an email.
|
117 |
-
*
|
118 |
-
* Returning a non-null value will short-circuit {@see wp_mail()}, returning
|
119 |
-
* that value instead. A boolean return value should be used to indicate whether
|
120 |
-
* the email was successfully sent.
|
121 |
-
*
|
122 |
-
* @since 2.2.1
|
123 |
-
*
|
124 |
-
* @param null|bool $return Short-circuit return value.
|
125 |
-
* @param array $atts {
|
126 |
-
* Array of the `wp_mail()` arguments.
|
127 |
-
*
|
128 |
-
* @type string|string[] $to Array or comma-separated list of email addresses to send message.
|
129 |
-
* @type string $subject Email subject.
|
130 |
-
* @type string $message Message contents.
|
131 |
-
* @type string|string[] $headers Additional headers.
|
132 |
-
* @type string|string[] $attachments Paths to files to attach.
|
133 |
-
* }
|
134 |
-
*/
|
135 |
-
$pre_wp_mail = apply_filters( 'pre_wp_mail', null, $atts );
|
136 |
-
|
137 |
-
if ( isset( $pre_wp_mail ['to'] ) ) {
|
138 |
-
$to = $pre_wp_mail ['to'];
|
139 |
}
|
140 |
|
141 |
-
if ( isset( $
|
142 |
-
$subject = $
|
143 |
}
|
144 |
|
145 |
-
if ( isset( $
|
146 |
-
$message = $
|
147 |
}
|
148 |
|
149 |
-
if ( isset( $
|
150 |
-
$headers = $
|
151 |
}
|
152 |
|
153 |
-
if ( isset( $
|
154 |
-
$attachments = $
|
155 |
}
|
156 |
|
157 |
if ( ! is_array( $attachments ) ) {
|
@@ -441,4 +418,4 @@ if ( ! class_exists( 'PostmanWpMail' ) ) {
|
|
441 |
$this->logger->trace( $message );
|
442 |
}
|
443 |
}
|
444 |
-
}
|
111 |
* subject, message, headers, and attachments values.
|
112 |
*/
|
113 |
$atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );
|
114 |
+
if ( isset( $atts ['to'] ) ) {
|
115 |
+
$to = $atts ['to'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
+
if ( isset( $atts ['subject'] ) ) {
|
119 |
+
$subject = $atts ['subject'];
|
120 |
}
|
121 |
|
122 |
+
if ( isset( $atts ['message'] ) ) {
|
123 |
+
$message = $atts ['message'];
|
124 |
}
|
125 |
|
126 |
+
if ( isset( $atts ['headers'] ) ) {
|
127 |
+
$headers = $atts ['headers'];
|
128 |
}
|
129 |
|
130 |
+
if ( isset( $atts ['attachments'] ) ) {
|
131 |
+
$attachments = $atts ['attachments'];
|
132 |
}
|
133 |
|
134 |
if ( ! is_array( $attachments ) ) {
|
418 |
$this->logger->trace( $message );
|
419 |
}
|
420 |
}
|
421 |
+
}
|
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.2
|
10 |
* Author: Post SMTP
|
11 |
* Text Domain: post-smtp
|
12 |
* Author URI: https://postmansmtp.com
|
@@ -102,7 +102,7 @@ ps_fs()->add_filter( 'plugin_icon' , 'ps_fs_custom_icon' );
|
|
102 |
define( 'POST_SMTP_BASE', __FILE__ );
|
103 |
define( 'POST_SMTP_PATH', __DIR__ );
|
104 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
105 |
-
define( 'POST_SMTP_VER', '2.2' );
|
106 |
define( 'POST_SMTP_ASSETS', plugin_dir_url( __FILE__ ) . 'assets/' );
|
107 |
|
108 |
$postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) );
|
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.2.1
|
10 |
* Author: Post SMTP
|
11 |
* Text Domain: post-smtp
|
12 |
* Author URI: https://postmansmtp.com
|
102 |
define( 'POST_SMTP_BASE', __FILE__ );
|
103 |
define( 'POST_SMTP_PATH', __DIR__ );
|
104 |
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
|
105 |
+
define( 'POST_SMTP_VER', '2.2.1' );
|
106 |
define( 'POST_SMTP_ASSETS', plugin_dir_url( __FILE__ ) . 'assets/' );
|
107 |
|
108 |
$postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: wpexpertsio
|
|
4 |
Tags: email, mail, smtp, wordpress smtp, email log, postman smtp, postman, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 6.1.1
|
7 |
-
Stable tag: 2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -296,6 +296,10 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
|
|
296 |
|
297 |
== Changelog ==
|
298 |
|
|
|
|
|
|
|
|
|
299 |
= 2.2 - 2022-12-08 =
|
300 |
* **NEW**
|
301 |
* Added New Socket/ Email Service Postmark
|
4 |
Tags: email, mail, smtp, wordpress smtp, email log, postman smtp, postman, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 6.1.1
|
7 |
+
Stable tag: 2.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
296 |
|
297 |
== Changelog ==
|
298 |
|
299 |
+
= 2.2.1 - 2022-12-13 =
|
300 |
+
* **FIX**
|
301 |
+
* Email template HTML was broken
|
302 |
+
|
303 |
= 2.2 - 2022-12-08 =
|
304 |
* **NEW**
|
305 |
* Added New Socket/ Email Service Postmark
|