summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2020-01-12 16:02:52 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2020-01-12 16:02:52 +0000
commit2850339b7b0f53042c2f27e7802e273c36d1cef8 (patch)
treef1a3ef5d10fa0b5cf0e715669abb4895ad2e7ce1
parent8f8e3437f14dd531f263f1c8fdab931f167a0392 (diff)
downloadPost-SMTP-2850339b7b0f53042c2f27e7802e273c36d1cef8.zip
Fix Reply-To header bug
-rw-r--r--Postman/Postman-Mail/PostmanMessage.php2
-rw-r--r--postman-smtp.php4
-rw-r--r--readme.txt5
3 files changed, 7 insertions, 4 deletions
diff --git a/Postman/Postman-Mail/PostmanMessage.php b/Postman/Postman-Mail/PostmanMessage.php
index 4099a02..fd59d3b 100644
--- a/Postman/Postman-Mail/PostmanMessage.php
+++ b/Postman/Postman-Mail/PostmanMessage.php
@@ -453,7 +453,7 @@ if ( ! class_exists( 'PostmanMessage' ) ) {
$pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i';
preg_match_all($pattern, $content, $matches);
- if ( isset( $matches[0] ) && is_email( $matches[0] ) ) {
+ if ( isset( $matches[0] ) && isset( $matches[0][0] ) && filter_var( $matches[0][0], FILTER_VALIDATE_EMAIL ) ) {
$this->setReplyTo( $content );
}
diff --git a/postman-smtp.php b/postman-smtp.php
index 401267b..23d30b6 100644
--- a/postman-smtp.php
+++ b/postman-smtp.php
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* Plugin Name: Post SMTP
* Plugin URI: https://wordpress.org/plugins/post-smtp/
* 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!
- * Version: 2.0.7
+ * Version: 2.0.8
* Author: Yehuda Hassine
* Text Domain: post-smtp
* Author URI: https://postmansmtp.com
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
define( 'POST_SMTP_BASE', __FILE__ );
define( 'POST_SMTP_PATH', __DIR__ );
define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
-define( 'POST_SMTP_VER', '2.0.7' );
+define( 'POST_SMTP_VER', '2.0.8' );
define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
define( 'POST_SMTP_RELEASE_MESSAGE', 'We have a new Facebook group, feel free to join.' );
define( 'POST_SMTP_RELEASE_URL', 'https://www.facebook.com/groups/post.smtp' );
diff --git a/readme.txt b/readme.txt
index 35c9aa6..cbe3426 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehuda@m
Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
Requires at least: 3.9
Tested up to: 5.3.2
-Stable tag: 2.0.7
+Stable tag: 2.0.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -286,6 +286,9 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
== Changelog ==
+= 2.0.8 - 2020-01-12
+* Updated: Reply-To header bug
+
= 2.0.7 - 2020-01-12
* Updated: Improve PHPMailer method.
* Updated: Bug fixes.