SendinBlue Subscribe Form And WP SMTP - Version 3.1.8

Version Description

Improvements

  • Fixed the issue of email not being sent to recipient in cc or bcc.
Download this release

Release Info

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

Code changes from version 3.1.7 to 3.1.8

Files changed (3) hide show
  1. inc/SendinblueApiClient.php +1 -1
  2. readme.txt +5 -0
  3. sendinblue.php +37 -34
inc/SendinblueApiClient.php CHANGED
@@ -14,7 +14,7 @@ class SendinblueApiClient
14
  const RESPONSE_CODE_CREATED = 201;
15
  const RESPONSE_CODE_ACCEPTED = 202;
16
  const RESPONSE_CODE_UNAUTHORIZED = 401;
17
- const PLUGIN_VERSION = '3.1.7';
18
 
19
  private $apiKey;
20
  private $lastResponseCode;
14
  const RESPONSE_CODE_CREATED = 201;
15
  const RESPONSE_CODE_ACCEPTED = 202;
16
  const RESPONSE_CODE_UNAUTHORIZED = 401;
17
+ const PLUGIN_VERSION = '3.1.8';
18
 
19
  private $apiKey;
20
  private $lastResponseCode;
readme.txt CHANGED
@@ -115,6 +115,11 @@ In order to create a signup form, you need to:
115
 
116
  == Changelog ==
117
 
 
 
 
 
 
118
  = 3.1.7 =
119
  **Improvements**
120
 
115
 
116
  == Changelog ==
117
 
118
+ = 3.1.8 =
119
+ **Improvements**
120
+
121
+ * Fixed the issue of email not being sent to recipient in cc or bcc.
122
+
123
  = 3.1.7 =
124
  **Improvements**
125
 
sendinblue.php CHANGED
@@ -3,7 +3,7 @@
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.1.7
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
@@ -912,43 +912,46 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
912
  break;
913
 
914
  case 'bcc':
915
- if ( strpos( $content, '<') !== false )
916
- {
917
- $bcc_content = substr( $content, strpos( $content, '<' ) + 1 );
918
- $bcc_content = str_replace( '>', '', $bcc_content );
919
- $bcc[ trim( $bcc_content ) ] = '';
920
- } else {
921
-
922
- if (!empty(trim( $content ))) {
923
- $data['bcc'] = [
924
- ['email' => trim( $content )]
925
- ];
926
- }
927
- }
928
  break;
929
  case 'cc':
930
- if ( strpos( $content, '<') !== false )
931
- {
932
- $cc_content = substr( $content, strpos( $content, '<' ) + 1 );
933
- $cc_content = str_replace( '>', '', $cc_content );
934
- if (!empty(trim( $cc_content ))) {
935
- $data['cc'] = ['email' => trim( $cc_content )];
936
- }
937
- }
 
 
 
 
938
  break;
939
  case 'reply-to':
940
- if ( strpos( $content, '<') !== false )
941
- {
942
- $reply_content = substr( $content, strpos( $content, '<' ) + 1 );
943
- $reply_content = str_replace( '>', '', $reply_content );
944
- $reply = trim( $reply_content );
945
- } else {
946
- $reply = trim( $content );
947
- }
948
-
949
- if (!empty($reply)) {
950
- $data['replyTo'] = ['email' => trim( $reply )];
951
- }
952
  break;
953
  default:
954
  break;
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.1.8
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
912
  break;
913
 
914
  case 'bcc':
915
+ if ( strpos( $content, '<') !== false )
916
+ {
917
+ $content = str_replace('<', '', $content);
918
+ $content = str_replace('>', '', $content);
919
+ }
920
+ $data['bcc'] = array();
921
+ $bcc_content = explode(',', $content);
922
+ foreach ($bcc_content as $key => $value) {
923
+ if ( ! empty( $value )) {
924
+ $data['bcc'][] = array('email' => $value);
925
+ }
926
+ }
 
927
  break;
928
  case 'cc':
929
+ if ( strpos( $content, '<') !== false )
930
+ {
931
+ $content = str_replace('<', '', $content);
932
+ $content = str_replace('>', '', $content);
933
+ }
934
+ $data['cc'] = array();
935
+ $cc_content = explode(',', $content);
936
+ foreach ($cc_content as $key => $value) {
937
+ if ( ! empty( $value )) {
938
+ $data['cc'][] = array('email' => $value);
939
+ }
940
+ }
941
  break;
942
  case 'reply-to':
943
+ if ( strpos( $content, '<') !== false )
944
+ {
945
+ $reply_content = substr( $content, strpos( $content, '<' ) + 1 );
946
+ $reply_content = str_replace( '>', '', $reply_content );
947
+ $reply = trim( $reply_content );
948
+ } else {
949
+ $reply = trim( $content );
950
+ }
951
+
952
+ if (!empty($reply)) {
953
+ $data['replyTo'] = ['email' => trim( $reply )];
954
+ }
955
  break;
956
  default:
957
  break;