Version Description
- Fixed the admin notification email not sent or bot correctly formatted
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 6.3.2 |
Comparing to | |
See all releases |
Code changes from version 6.3.1 to 6.3.2
- includes/mailers.php +4 -5
- includes/module.php +2 -0
- plugin.php +2 -2
- readme.txt +5 -1
includes/mailers.php
CHANGED
@@ -119,10 +119,10 @@ class NewsletterDefaultMailer extends NewsletterMailer {
|
|
119 |
/* @var $mailer PHPMailer */
|
120 |
$mailer->Sender = Newsletter::instance()->options['return_path'];
|
121 |
|
122 |
-
if (empty($this->current_message->body_text)) {
|
123 |
-
|
124 |
}
|
125 |
-
|
126 |
}, 100);
|
127 |
$this->filter_active = true;
|
128 |
}
|
@@ -146,7 +146,6 @@ class NewsletterDefaultMailer extends NewsletterMailer {
|
|
146 |
|
147 |
if (!empty($message->body)) {
|
148 |
$wp_mail_headers[] = 'Content-Type: text/html;charset=UTF-8';
|
149 |
-
|
150 |
$body = $message->body;
|
151 |
} else if (!empty($message->body_text)) {
|
152 |
$wp_mail_headers[] = 'Content-Type: text/plain;charset=UTF-8';
|
@@ -155,7 +154,7 @@ class NewsletterDefaultMailer extends NewsletterMailer {
|
|
155 |
$message->error = 'Empty body';
|
156 |
return new WP_Error(self::ERROR_GENERIC, 'Message format');
|
157 |
}
|
158 |
-
|
159 |
$this->current_message = $message;
|
160 |
$r = wp_mail($message->to, $message->subject, $body, $wp_mail_headers);
|
161 |
$this->current_message = null;
|
119 |
/* @var $mailer PHPMailer */
|
120 |
$mailer->Sender = Newsletter::instance()->options['return_path'];
|
121 |
|
122 |
+
if (!empty($this->current_message->body) && !empty($this->current_message->body_text)) {
|
123 |
+
$mailer->AltBody = $this->current_message->body_text;
|
124 |
}
|
125 |
+
|
126 |
}, 100);
|
127 |
$this->filter_active = true;
|
128 |
}
|
146 |
|
147 |
if (!empty($message->body)) {
|
148 |
$wp_mail_headers[] = 'Content-Type: text/html;charset=UTF-8';
|
|
|
149 |
$body = $message->body;
|
150 |
} else if (!empty($message->body_text)) {
|
151 |
$wp_mail_headers[] = 'Content-Type: text/plain;charset=UTF-8';
|
154 |
$message->error = 'Empty body';
|
155 |
return new WP_Error(self::ERROR_GENERIC, 'Message format');
|
156 |
}
|
157 |
+
|
158 |
$this->current_message = $message;
|
159 |
$r = wp_mail($message->to, $message->subject, $body, $wp_mail_headers);
|
160 |
$this->current_message = null;
|
includes/module.php
CHANGED
@@ -469,6 +469,8 @@ class TNP_Mailer_Message {
|
|
469 |
var $user_id = 0;
|
470 |
var $email_id = 0;
|
471 |
var $error = '';
|
|
|
|
|
472 |
var $body_text = '';
|
473 |
|
474 |
}
|
469 |
var $user_id = 0;
|
470 |
var $email_id = 0;
|
471 |
var $error = '';
|
472 |
+
var $subject = '';
|
473 |
+
var $body = '';
|
474 |
var $body_text = '';
|
475 |
|
476 |
}
|
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
-
Version: 6.3.
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
@@ -29,7 +29,7 @@
|
|
29 |
*/
|
30 |
|
31 |
// Used as dummy parameter on css and js links
|
32 |
-
define('NEWSLETTER_VERSION', '6.3.
|
33 |
|
34 |
global $newsletter, $wpdb;
|
35 |
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
+
Version: 6.3.2
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
29 |
*/
|
30 |
|
31 |
// Used as dummy parameter on css and js links
|
32 |
+
define('NEWSLETTER_VERSION', '6.3.2');
|
33 |
|
34 |
global $newsletter, $wpdb;
|
35 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 5.2.3
|
5 |
-
Stable tag: 6.3.
|
6 |
Requires PHP: 5.6
|
7 |
Contributors: satollo,webagile,michael-travan
|
8 |
|
@@ -109,6 +109,10 @@ Thank you, The Newsletter Team
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
112 |
= 6.3.1 =
|
113 |
|
114 |
* Empty subject fix
|
2 |
Tags: email, email marketing, newsletter, newsletter subscribers, welcome email, signup forms, contact, lead generation, popup, marketing automation
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 5.2.3
|
5 |
+
Stable tag: 6.3.2
|
6 |
Requires PHP: 5.6
|
7 |
Contributors: satollo,webagile,michael-travan
|
8 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 6.3.2 =
|
113 |
+
|
114 |
+
* Fixed the admin notification email not sent or bot correctly formatted
|
115 |
+
|
116 |
= 6.3.1 =
|
117 |
|
118 |
* Empty subject fix
|