Version Description
Improvements
- Fixed critical errors for PHP Mailer triggered for Wordpress version 5.5 and beyond Transactional mails with attachment issue has been fixed
Download this release
Release Info
Developer | neeraj_slit |
Plugin | SendinBlue Subscribe Form And WP SMTP |
Version | 3.0.9 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 3.0.9
- readme.txt +7 -0
- sendinblue.php +10 -5
readme.txt
CHANGED
@@ -113,6 +113,13 @@ In order to create a signup form, you need to:
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
= 3.0.8 =
|
117 |
**Improvements:**
|
118 |
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 3.0.9 =
|
117 |
+
**Improvements**
|
118 |
+
|
119 |
+
* Fixed critical errors for PHP Mailer triggered for Wordpress version 5.5 and beyond
|
120 |
+
Transactional mails with attachment issue has been fixed
|
121 |
+
|
122 |
+
|
123 |
= 3.0.8 =
|
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.0.
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
@@ -239,11 +239,15 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
|
|
239 |
try {
|
240 |
$sent = SIB_Manager::sib_email( $to, $subject, $message, $headers, $attachments );
|
241 |
if ( is_wp_error( $sent ) || ! isset( $sent['code'] ) || 'success' !== $sent['code'] ) {
|
242 |
-
|
|
|
|
|
|
|
|
|
243 |
}
|
244 |
return true;
|
245 |
} catch ( Exception $e ) {
|
246 |
-
|
247 |
}
|
248 |
}
|
249 |
} else {
|
@@ -967,7 +971,7 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
|
|
967 |
$attachment_content = array_merge( $attachment_content, $content );
|
968 |
}
|
969 |
}
|
970 |
-
$data[
|
971 |
}
|
972 |
|
973 |
// Common transformations for the HTML part.
|
@@ -1054,7 +1058,8 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
|
|
1054 |
$setMagicQuotesRuntimeFunc($magicQuotes);
|
1055 |
}
|
1056 |
|
1057 |
-
$struct[
|
|
|
1058 |
|
1059 |
} catch ( Exception $e ) {
|
1060 |
return new WP_Error( 'Error creating the attachment structure: ' . $e->getMessage() );
|
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.9
|
7 |
* Author: Sendinblue
|
8 |
* Author URI: https://www.sendinblue.com/?r=wporg
|
9 |
* License: GPLv2 or later
|
239 |
try {
|
240 |
$sent = SIB_Manager::sib_email( $to, $subject, $message, $headers, $attachments );
|
241 |
if ( is_wp_error( $sent ) || ! isset( $sent['code'] ) || 'success' !== $sent['code'] ) {
|
242 |
+
try{
|
243 |
+
return true;
|
244 |
+
}catch( Exception $e ){
|
245 |
+
return false;
|
246 |
+
}
|
247 |
}
|
248 |
return true;
|
249 |
} catch ( Exception $e ) {
|
250 |
+
return false;
|
251 |
}
|
252 |
}
|
253 |
} else {
|
971 |
$attachment_content = array_merge( $attachment_content, $content );
|
972 |
}
|
973 |
}
|
974 |
+
$data["attachment"] = array($attachment_content);
|
975 |
}
|
976 |
|
977 |
// Common transformations for the HTML part.
|
1058 |
$setMagicQuotesRuntimeFunc($magicQuotes);
|
1059 |
}
|
1060 |
|
1061 |
+
$struct["name"] = $filename;
|
1062 |
+
$struct["content"] = $file_buffer;
|
1063 |
|
1064 |
} catch ( Exception $e ) {
|
1065 |
return new WP_Error( 'Error creating the attachment structure: ' . $e->getMessage() );
|