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 | 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
- inc/SendinblueApiClient.php +1 -1
- readme.txt +5 -0
- 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.
|
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 |
* 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 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
}
|
928 |
break;
|
929 |
case 'cc':
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
|
|
|
|
|
|
|
|
938 |
break;
|
939 |
case 'reply-to':
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
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;
|