SendinBlue Subscribe Form And WP SMTP - Version 3.0.6

Version Description

Bug fixes:

  • Compatibility issue with Gravity Forms which was affecting transactional mailing
Download this release

Release Info

Developer neeraj_slit
Plugin Icon 128x128 SendinBlue Subscribe Form And WP SMTP
Version 3.0.6
Comparing to
See all releases

Code changes from version 3.0.5 to 3.0.6

Files changed (3) hide show
  1. inc/sib-api-manager.php +11 -2
  2. readme.txt +8 -1
  3. sendinblue.php +5 -3
inc/sib-api-manager.php CHANGED
@@ -245,8 +245,16 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
245
  $mailin = new SendinblueApiClient( );
246
  try {
247
  if (isset($data['headers'])) {
248
- $emailHeaders = preg_split("/\r\n|\n|\r/", $data['headers']);
249
  unset($data['headers']);
 
 
 
 
 
 
 
 
250
  $preparedHeaders = [];
251
  foreach ($emailHeaders as $header) {
252
  $header = explode(': ', $header);
@@ -260,8 +268,9 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
260
  $data['headers'] = $preparedHeaders;
261
  }
262
  } catch (Exception $exception) {
263
-
264
  }
 
265
  $home_options = get_option( SIB_Manager::HOME_OPTION_NAME);
266
  if (!empty($home_options['from_email'])) {
267
  $data['sender']['email'] = $home_options['from_email'];
245
  $mailin = new SendinblueApiClient( );
246
  try {
247
  if (isset($data['headers'])) {
248
+ $emailHeaders = $data['headers'];
249
  unset($data['headers']);
250
+
251
+ if (!is_array($emailHeaders) && !is_string($emailHeaders)) {
252
+ return new WP_Error('email headers are not valid');
253
+ }
254
+
255
+ if (is_string($emailHeaders)) {
256
+ $emailHeaders = preg_split("/\r\n|\n|\r/", $emailHeaders);
257
+ }
258
  $preparedHeaders = [];
259
  foreach ($emailHeaders as $header) {
260
  $header = explode(': ', $header);
268
  $data['headers'] = $preparedHeaders;
269
  }
270
  } catch (Exception $exception) {
271
+ return new WP_Error($exception->getMessage());
272
  }
273
+
274
  $home_options = get_option( SIB_Manager::HOME_OPTION_NAME);
275
  if (!empty($home_options['from_email'])) {
276
  $data['sender']['email'] = $home_options['from_email'];
readme.txt CHANGED
@@ -1,4 +1,4 @@
1
- === Sendinblue Subscribe Form And WP SMTP ===
2
  Contributors: neeraj_slit
3
  Tags: sendinblue, marketing automation, email marketing, email campaign, newsletter, wordpress smtp, subscription form, phpmailer, SMTP, wp_mail, massive email, sendmail, ssl, tls, wp-phpmailer, mail smtp, mailchimp, newsletters, email plugin, signup form, email widget, widget, plugin, sidebar, shortcode
4
  Requires at least: 4.4
@@ -112,8 +112,15 @@ In order to create a signup form, you need to:
112
  2. Integrate the form in a sidebar using a widget from WP panel > Appearance > Widgets. The Sendinblue widget form should appear in your widgets list, you just to have to drag and drop the widget into the sidebar of your choice.
113
 
114
  == Changelog ==
 
 
 
 
 
 
115
  = 3.0.5 =
116
  **Bug fixes:**
 
117
  * Multi-list selection
118
  * Recipients boolean attributes
119
 
1
+ === Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue ===
2
  Contributors: neeraj_slit
3
  Tags: sendinblue, marketing automation, email marketing, email campaign, newsletter, wordpress smtp, subscription form, phpmailer, SMTP, wp_mail, massive email, sendmail, ssl, tls, wp-phpmailer, mail smtp, mailchimp, newsletters, email plugin, signup form, email widget, widget, plugin, sidebar, shortcode
4
  Requires at least: 4.4
112
  2. Integrate the form in a sidebar using a widget from WP panel > Appearance > Widgets. The Sendinblue widget form should appear in your widgets list, you just to have to drag and drop the widget into the sidebar of your choice.
113
 
114
  == Changelog ==
115
+
116
+ = 3.0.6 =
117
+ **Bug fixes:**
118
+
119
+ * Compatibility issue with Gravity Forms which was affecting transactional mailing
120
+
121
  = 3.0.5 =
122
  **Bug fixes:**
123
+
124
  * Multi-list selection
125
  * Recipients boolean attributes
126
 
sendinblue.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
- * Plugin Name: Sendinblue Subscribe Form And WP SMTP
4
  * Plugin URI: https://www.sendinblue.com/?r=wporg
5
  * Description: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
6
- * Version: 3.0.5
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
@@ -902,7 +902,9 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
902
  } else {
903
 
904
  if (!empty(trim( $content ))) {
905
- $data['bcc'] = ['email' => trim( $content )];
 
 
906
  }
907
  }
908
  break;
1
  <?php
2
  /**
3
+ * Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
4
  * Plugin URI: https://www.sendinblue.com/?r=wporg
5
  * Description: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
6
+ * Version: 3.0.6
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
902
  } else {
903
 
904
  if (!empty(trim( $content ))) {
905
+ $data['bcc'] = [
906
+ ['email' => trim( $content )]
907
+ ];
908
  }
909
  }
910
  break;