Easy WP SMTP - Version 1.4.3

Version Description

  • Added empty "index.html" file to this plugin's folder to prevent anyone from browsing the files (even if the Option -Indexes is missing on that server).
Download this release

Release Info

Developer mra13
Plugin Icon 128x128 Easy WP SMTP
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.1 to 1.4.3

class-easywpsmtp-admin.php CHANGED
@@ -126,9 +126,9 @@ function swpsmtp_settings() {
126
  if ( isset( $_POST['swpsmtp_reply_to_email'] ) ) {
127
  $swpsmtp_options['reply_to_email'] = sanitize_email( $_POST['swpsmtp_reply_to_email'] );
128
  }
129
- if ( isset( $_POST['swpsmtp_bcc_email'] ) ) {
130
- $swpsmtp_options['bcc_email'] = sanitize_text_field( $_POST['swpsmtp_bcc_email'] );//Can contain comma seperated addresses.
131
- }
132
 
133
  if ( isset( $_POST['swpsmtp_email_ignore_list'] ) ) {
134
  $swpsmtp_options['email_ignore_list'] = sanitize_text_field( $_POST['swpsmtp_email_ignore_list'] );
@@ -269,13 +269,13 @@ function swpsmtp_settings() {
269
  <p>
270
  </td>
271
  </tr>
272
- <tr valign="top">
273
- <th scope="row"><?php esc_html_e( 'BCC Email Address', 'easy-wp-smtp' ); ?></th>
274
- <td>
275
- <input id="swpsmtp_bcc_email" type="text" name="swpsmtp_bcc_email" value="<?php echo isset( $swpsmtp_options['bcc_email'] ) ? esc_attr( $swpsmtp_options['bcc_email'] ) : ''; ?>" /><br />
276
- <p class="description"><?php esc_html_e( "Optional. This email address will be used in the 'BCC' field of the outgoing emails. Use this option carefully since all your outgoing emails from this site will add this address to the BCC field. You can also enter multiple email addresses (comma separated).", 'easy-wp-smtp' ); ?></p>
277
- </td>
278
- </tr>
279
 
280
  <tr class="ad_opt swpsmtp_smtp_options">
281
  <th><?php esc_html_e( 'SMTP Host', 'easy-wp-smtp' ); ?></th>
126
  if ( isset( $_POST['swpsmtp_reply_to_email'] ) ) {
127
  $swpsmtp_options['reply_to_email'] = sanitize_email( $_POST['swpsmtp_reply_to_email'] );
128
  }
129
+ if ( isset( $_POST['swpsmtp_bcc_email'] ) ) {
130
+ $swpsmtp_options['bcc_email'] = sanitize_text_field( $_POST['swpsmtp_bcc_email'] );//Can contain comma seperated addresses.
131
+ }
132
 
133
  if ( isset( $_POST['swpsmtp_email_ignore_list'] ) ) {
134
  $swpsmtp_options['email_ignore_list'] = sanitize_text_field( $_POST['swpsmtp_email_ignore_list'] );
269
  <p>
270
  </td>
271
  </tr>
272
+ <tr valign="top">
273
+ <th scope="row"><?php esc_html_e( 'BCC Email Address', 'easy-wp-smtp' ); ?></th>
274
+ <td>
275
+ <input id="swpsmtp_bcc_email" type="text" name="swpsmtp_bcc_email" value="<?php echo isset( $swpsmtp_options['bcc_email'] ) ? esc_attr( $swpsmtp_options['bcc_email'] ) : ''; ?>" /><br />
276
+ <p class="description"><?php esc_html_e( "Optional. This email address will be used in the 'BCC' field of the outgoing emails. Use this option carefully since all your outgoing emails from this site will add this address to the BCC field. You can also enter multiple email addresses (comma separated).", 'easy-wp-smtp' ); ?></p>
277
+ </td>
278
+ </tr>
279
 
280
  <tr class="ad_opt swpsmtp_smtp_options">
281
  <th><?php esc_html_e( 'SMTP Host', 'easy-wp-smtp' ); ?></th>
css/index.html ADDED
File without changes
easy-wp-smtp.php CHANGED
@@ -3,7 +3,7 @@ use PHPMailer\PHPMailer\PHPMailer;
3
  use PHPMailer\PHPMailer\Exception;
4
  /*
5
  Plugin Name: Easy WP SMTP
6
- Version: 1.4.1
7
  Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
8
  Author: wpecommerce, alexanderfoxc
9
  Author URI: https://wp-ecommerce.net/
@@ -119,13 +119,13 @@ class EasyWPSMTP {
119
  }
120
  }
121
 
122
- if ( ! empty( $this->opts['bcc_email'] ) ) {
123
- $bcc_emails = explode(",", $this->opts['bcc_email']);
124
- foreach ( $bcc_emails as $bcc_email ) {
125
- $bcc_email = trim($bcc_email);
126
- $phpmailer->AddBcc( $bcc_email );
127
- }
128
- }
129
 
130
  // let's see if we have email ignore list populated
131
  if ( isset( $this->opts['email_ignore_list'] ) && ! empty( $this->opts['email_ignore_list'] ) ) {
@@ -199,6 +199,7 @@ class EasyWPSMTP {
199
  if ( version_compare( $wp_version, '5.4.99' ) > 0 ) {
200
  require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
201
  require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
 
202
  $mail = new PHPMailer( true );
203
  } else {
204
  require_once ABSPATH . WPINC . '/class-phpmailer.php';
@@ -249,19 +250,19 @@ class EasyWPSMTP {
249
  $mail->Host = $this->opts['smtp_settings']['host'];
250
  $mail->Port = $this->opts['smtp_settings']['port'];
251
 
252
- //Add reply-to if set in settings.
253
  if ( ! empty( $this->opts['reply_to_email'] ) ) {
254
  $mail->AddReplyTo( $this->opts['reply_to_email'], $from_name );
255
  }
256
 
257
- //Add BCC if set in settings.
258
- if ( ! empty( $this->opts['bcc_email'] ) ) {
259
- $bcc_emails = explode(",", $this->opts['bcc_email']);
260
- foreach ( $bcc_emails as $bcc_email ) {
261
- $bcc_email = trim($bcc_email);
262
- $mail->AddBcc( $bcc_email );
263
- }
264
- }
265
 
266
  $mail->SetFrom( $from_email, $from_name );
267
  //This should set Return-Path header for servers that are not properly handling it, but needs testing first
3
  use PHPMailer\PHPMailer\Exception;
4
  /*
5
  Plugin Name: Easy WP SMTP
6
+ Version: 1.4.3
7
  Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
8
  Author: wpecommerce, alexanderfoxc
9
  Author URI: https://wp-ecommerce.net/
119
  }
120
  }
121
 
122
+ if ( ! empty( $this->opts['bcc_email'] ) ) {
123
+ $bcc_emails = explode( ',', $this->opts['bcc_email'] );
124
+ foreach ( $bcc_emails as $bcc_email ) {
125
+ $bcc_email = trim( $bcc_email );
126
+ $phpmailer->AddBcc( $bcc_email );
127
+ }
128
+ }
129
 
130
  // let's see if we have email ignore list populated
131
  if ( isset( $this->opts['email_ignore_list'] ) && ! empty( $this->opts['email_ignore_list'] ) ) {
199
  if ( version_compare( $wp_version, '5.4.99' ) > 0 ) {
200
  require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php';
201
  require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
202
+ require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';
203
  $mail = new PHPMailer( true );
204
  } else {
205
  require_once ABSPATH . WPINC . '/class-phpmailer.php';
250
  $mail->Host = $this->opts['smtp_settings']['host'];
251
  $mail->Port = $this->opts['smtp_settings']['port'];
252
 
253
+ //Add reply-to if set in settings.
254
  if ( ! empty( $this->opts['reply_to_email'] ) ) {
255
  $mail->AddReplyTo( $this->opts['reply_to_email'], $from_name );
256
  }
257
 
258
+ //Add BCC if set in settings.
259
+ if ( ! empty( $this->opts['bcc_email'] ) ) {
260
+ $bcc_emails = explode( ',', $this->opts['bcc_email'] );
261
+ foreach ( $bcc_emails as $bcc_email ) {
262
+ $bcc_email = trim( $bcc_email );
263
+ $mail->AddBcc( $bcc_email );
264
+ }
265
+ }
266
 
267
  $mail->SetFrom( $from_email, $from_name );
268
  //This should set Return-Path header for servers that are not properly handling it, but needs testing first
inc/index.html ADDED
File without changes
index.html ADDED
File without changes
js/index.html ADDED
File without changes
languages/index.html ADDED
File without changes
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Contributors: wpecommerce, wp.insider, alexanderfoxc
3
  Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
4
  Tags: mail, wordpress smtp, phpmailer, smtp, wp_mail, email, gmail, outgoing mail, privacy, security, sendmail, ssl, tls, wp-phpmailer, mail smtp, wp smtp
5
- Requires at least: 4.3
6
- Tested up to: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 1.4.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -79,6 +79,12 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
79
 
80
  == Changelog ==
81
 
 
 
 
 
 
 
82
  = 1.4.1 =
83
  * Added an option to specify BCC email address for the outgoing emails.
84
 
2
  Contributors: wpecommerce, wp.insider, alexanderfoxc
3
  Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
4
  Tags: mail, wordpress smtp, phpmailer, smtp, wp_mail, email, gmail, outgoing mail, privacy, security, sendmail, ssl, tls, wp-phpmailer, mail smtp, wp smtp
5
+ Requires at least: 5.0
6
+ Tested up to: 5.6
7
  Requires PHP: 5.6
8
+ Stable tag: 1.4.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
79
 
80
  == Changelog ==
81
 
82
+ = 1.4.3 =
83
+ * Added empty "index.html" file to this plugin's folder to prevent anyone from browsing the files (even if the Option -Indexes is missing on that server).
84
+
85
+ = 1.4.2 =
86
+ * Improved compatibility for sites using older version of PHP and WP5.5+
87
+
88
  = 1.4.1 =
89
  * Added an option to specify BCC email address for the outgoing emails.
90